Patch removes templated linkerscript class.
Unfortunately that required 2 additional static methods
findSymbol() and addRegularSymbol() because code
depends on Symtab<ELFT>::X
But that seems enough. I wonder if it is possible to avoid though.
Paths
| Differential D30982
[ELF] - Combine LinkerScriptBase and LinkerScript<ELFT> ClosedPublic Authored by grimar on Mar 15 2017, 7:24 AM.
Details Summary Patch removes templated linkerscript class. Unfortunately that required 2 additional static methods But that seems enough. I wonder if it is possible to avoid though.
Diff Detail
Event Timelinegrimar retitled this revision from [ELF] - REmove virtual methods from linker script class. to [ELF] - Remove virtual methods from linker script class.. grimar retitled this revision from [ELF] - Remove virtual methods from linker script class. to [ELF] - Combine LinkerScriptBase and LinkerScript<ELFT>. Comment Actions
This revision is now accepted and ready to land.Mar 17 2017, 12:30 PM Closed by commit rL298241: [ELF] - Combine LinkerScriptBase and LinkerScript<ELFT> (authored by grimar). · Explain WhyMar 20 2017, 3:22 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 92309 lld/trunk/ELF/Driver.cpp
lld/trunk/ELF/LinkerScript.h
lld/trunk/ELF/LinkerScript.cpp
lld/trunk/ELF/MarkLive.cpp
lld/trunk/ELF/OutputSections.cpp
lld/trunk/ELF/SyntheticSections.cpp
lld/trunk/ELF/Writer.cpp
|