This should make it possible to access the symbol list from non-templated code.
I wanted something like this to handle start_/end_ symbols in lto.
Paths
| Differential D35868
Detemplate SymbolTable ClosedPublic Authored by • rafael on Jul 25 2017, 4:51 PM.
Details
Summary This should make it possible to access the symbol list from non-templated code. I wanted something like this to handle start_/end_ symbols in lto.
Diff Detail Event TimelineComment Actions I think we can detemplate this class without creating a class hierarchy. Most part of the class does not use ELFT, so I think we can template member functions and then detemplate the class. Comment Actions Yeah, but I think the reason why we are using a SymbolTable as a bag to store input files is mostly historic. We can store it to global variables, and it shouldn't decrease the quality of code because they are already available globally through Symtab<ELFT>::X. • rafael retitled this revision from Detemplate part of SymbolTable to Detemplate SymbolTable.Jul 26 2017, 9:25 AM Comment Actions Generally looking good.
This revision is now accepted and ready to land.Jul 26 2017, 11:23 AM
Revision Contents
Diff 108302 ELF/Arch/MipsArchTree.cpp
ELF/Driver.cpp
ELF/InputFiles.cpp
ELF/LinkerScript.cpp
ELF/MapFile.cpp
ELF/MarkLive.cpp
ELF/Relocations.cpp
ELF/SymbolTable.h
ELF/SymbolTable.cpp
ELF/SyntheticSections.cpp
ELF/Writer.h
ELF/Writer.cpp
|
Use make for consistency.