summaryrefslogtreecommitdiffstats
path: root/lld/ELF/SyntheticSections.cpp
diff options
context:
space:
mode:
authorGeorge Rimar <grimar@accesssoftek.com>2018-07-19 14:39:56 +0000
committerGeorge Rimar <grimar@accesssoftek.com>2018-07-19 14:39:56 +0000
commited2605d36d673626d18ed945f52b11fa80aa6e32 (patch)
tree8033c88a2f06ea59045167bd90131254a0ca35ab /lld/ELF/SyntheticSections.cpp
parenta274452924e5edf7a3e95c3ab4927c70c29b510c (diff)
downloadbcm5719-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.cpp3
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(
OpenPOWER on IntegriCloud