Open hzongaro opened 5 years ago
For convenience, I'll repeat the two approaches mentioned in the comments from pull request #3248:
This could be tackled by adding #include
s for the new _inlines.hpp
files to the .cpp
files in stages:
*SymbolReferenceTable_inlines.hpp
to OMR#include
s for the new _inlines.hpp
files to OpenJ9#include
for the new _inlines.hpp
files to OMR (or the second half of this step could be done at step 1.)If we want to avoid requiring #include
s for the new _inlines.hpp
files to the .cpp
files, which I think is desirable, there are some entanglements between the implementations of SymbolReference
and SymbolReferenceTable
that will complicate things.
Minor side note: some classes get away with including the <class_name>_inlines.hpp
file right at the end of the <class_name>.hpp
file. For example:
This avoids having to include the _inlines.hpp
file in all the .cpp
files that need it but it also deviates a little from the goal of keeping the <class_name>.hpp
files minimal.
In a review comment for pull request https://github.com/eclipse/omr/pull/3248#discussion_r236836454, Gita @gita-omr recommended that the
SymbolReferenceTable::isNonHelpler
andSymbolReferenceTable::getNonHelperSymbol
methods be inlined. I ran into some difficulties, outlined later in that review thread https://github.com/eclipse/omr/pull/3248#discussion_r238776374, and so I've separated out that task into this separate issue.