diff options
| author | George Rimar <grimar@accesssoftek.com> | 2017-03-15 15:42:44 +0000 |
|---|---|---|
| committer | George Rimar <grimar@accesssoftek.com> | 2017-03-15 15:42:44 +0000 |
| commit | 503206c5679289f2111ce30e17f3c2f044652584 (patch) | |
| tree | dbc783184b64eaacd08b99397461f2868ebbacd8 /lld/ELF/LinkerScript.cpp | |
| parent | a5f332edd147812f4f808a91989e937a74020750 (diff) | |
[ELF] - Move LinkerScript::discard to LinkerScriptBase. NFC.
Became possible after r297844
llvm-svn: 297848
Diffstat (limited to 'lld/ELF/LinkerScript.cpp')
| -rw-r--r-- | lld/ELF/LinkerScript.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lld/ELF/LinkerScript.cpp b/lld/ELF/LinkerScript.cpp index 5f2c9a169061..fc56c5fcb8e0 100644 --- a/lld/ELF/LinkerScript.cpp +++ b/lld/ELF/LinkerScript.cpp @@ -288,11 +288,10 @@ void LinkerScriptBase::computeInputSections(InputSectionDescription *I) { } } -template <class ELFT> -void LinkerScript<ELFT>::discard(ArrayRef<InputSectionBase *> V) { +void LinkerScriptBase::discard(ArrayRef<InputSectionBase *> V) { for (InputSectionBase *S : V) { S->Live = false; - if (S == In<ELFT>::ShStrTab) + if (S == InX::ShStrTab) error("discarding .shstrtab section is not allowed"); discard(S->DependentSections); } |
