diff options
| author | George Rimar <grimar@accesssoftek.com> | 2018-07-19 14:39:56 +0000 |
|---|---|---|
| committer | George Rimar <grimar@accesssoftek.com> | 2018-07-19 14:39:56 +0000 |
| commit | ed2605d36d673626d18ed945f52b11fa80aa6e32 (patch) | |
| tree | 8033c88a2f06ea59045167bd90131254a0ca35ab /lld/ELF/SyntheticSections.cpp | |
| parent | a274452924e5edf7a3e95c3ab4927c70c29b510c (diff) | |
| download | bcm5719-llvm-ed2605d36d673626d18ed945f52b11fa80aa6e32.tar.gz bcm5719-llvm-ed2605d36d673626d18ed945f52b11fa80aa6e32.zip | |
[ELF] - Eliminate dead code. NFC.
Code was dead because we call postThunkContents only for SHT_SYMTAB.
llvm-svn: 337460
Diffstat (limited to 'lld/ELF/SyntheticSections.cpp')
| -rw-r--r-- | lld/ELF/SyntheticSections.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lld/ELF/SyntheticSections.cpp b/lld/ELF/SyntheticSections.cpp index d51c288431d..4d5a2c820de 100644 --- a/lld/ELF/SyntheticSections.cpp +++ b/lld/ELF/SyntheticSections.cpp @@ -1849,8 +1849,7 @@ void SymbolTableBaseSection::finalizeContents() { // symbol. That is convenient for purpose of identifying where are local symbols // coming from. void SymbolTableBaseSection::postThunkContents() { - if (this->Type == SHT_DYNSYM) - return; + assert(this->Type == SHT_SYMTAB); // Move all local symbols before global symbols. auto E = std::stable_partition( |

