diff options
author | Rui Ueyama <ruiu@google.com> | 2017-10-11 01:19:33 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2017-10-11 01:19:33 +0000 |
commit | dfa3101117d5afaacbe04cfce10d93adbbada0d0 (patch) | |
tree | 2be62a7c5da9554e784323492db86a8b23293991 /lld/ELF/MarkLive.cpp | |
parent | 1aa731e3798692c01de7ed826624b176c2f391e8 (diff) |
Remove ScriptConfiguration class and move the members to LinkerScript class.
ScriptConfiguration was a class to contain parsed results of
linker scripts. LinkerScript is a class to interpret it.
That ditinction was needed because we haven't instantiated
LinkerScript early (because, IIRC, LinkerScript class was a
ELFT template function). So, when we parse linker scripts,
we couldn't directly store the result to a LinkerScript instance.
Now, that limitation is gone. We instantiate LinkerScript
at the very beginning of our main function. We can directly
store parse results to a LinkerScript instance.
Diffstat (limited to 'lld/ELF/MarkLive.cpp')
-rw-r--r-- | lld/ELF/MarkLive.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/MarkLive.cpp b/lld/ELF/MarkLive.cpp index e710374e430..b737eac800b 100644 --- a/lld/ELF/MarkLive.cpp +++ b/lld/ELF/MarkLive.cpp @@ -229,7 +229,7 @@ template <class ELFT> static void doGcSections() { MarkSymbol(Symtab->find(Config->Fini)); for (StringRef S : Config->Undefined) MarkSymbol(Symtab->find(S)); - for (StringRef S : Script->Opt.ReferencedSymbols) + for (StringRef S : Script->ReferencedSymbols) MarkSymbol(Symtab->find(S)); // Preserve externally-visible symbols if the symbols defined by this |