diff options
| author | Petr Hosek <phosek@chromium.org> | 2017-07-21 01:02:30 +0000 |
|---|---|---|
| committer | Petr Hosek <phosek@chromium.org> | 2017-07-21 01:02:30 +0000 |
| commit | 8b591f592b667edcf96167c4475355e5d3b5769f (patch) | |
| tree | 10a0a8e64455e55af7cbb83b57a62e73956f73f8 | |
| parent | 0f874d4ba5cbeb4e2386c3cea6602cd0dda7e9c3 (diff) | |
| download | bcm5719-llvm-8b591f592b667edcf96167c4475355e5d3b5769f.tar.gz bcm5719-llvm-8b591f592b667edcf96167c4475355e5d3b5769f.zip | |
[ELF] Remove processNonSectionCommands
This method is no longer being used anywhere.
Differential Revision: https://reviews.llvm.org/D35706
llvm-svn: 308706
| -rw-r--r-- | lld/ELF/LinkerScript.cpp | 9 | ||||
| -rw-r--r-- | lld/ELF/LinkerScript.h | 1 |
2 files changed, 0 insertions, 10 deletions
diff --git a/lld/ELF/LinkerScript.cpp b/lld/ELF/LinkerScript.cpp index 8bdbd8db20a..14d4c06adef 100644 --- a/lld/ELF/LinkerScript.cpp +++ b/lld/ELF/LinkerScript.cpp @@ -790,15 +790,6 @@ void LinkerScript::adjustSectionsAfterSorting() { removeEmptyCommands(); } -void LinkerScript::processNonSectionCommands() { - for (BaseCommand *Base : Opt.Commands) { - if (auto *Cmd = dyn_cast<SymbolAssignment>(Base)) - assignSymbol(Cmd, false); - else if (auto *Cmd = dyn_cast<AssertCommand>(Base)) - Cmd->Expression(); - } -} - void LinkerScript::allocateHeaders(std::vector<PhdrEntry> &Phdrs) { uint64_t Min = std::numeric_limits<uint64_t>::max(); for (OutputSectionCommand *Cmd : OutputSectionCommands) { diff --git a/lld/ELF/LinkerScript.h b/lld/ELF/LinkerScript.h index dd5a7d797f6..798803bbaab 100644 --- a/lld/ELF/LinkerScript.h +++ b/lld/ELF/LinkerScript.h @@ -288,7 +288,6 @@ public: bool shouldKeep(InputSectionBase *S); void assignOffsets(OutputSectionCommand *Cmd); - void processNonSectionCommands(); void assignAddresses(); void allocateHeaders(std::vector<PhdrEntry> &Phdrs); void addSymbol(SymbolAssignment *Cmd); |

