summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2016-05-23 16:24:22 +0000
committerRui Ueyama <ruiu@google.com>2016-05-23 16:24:22 +0000
commit8a6ef4e6b2fbc3609ee46f4a4e0f5b8848b9b5cb (patch)
tree5c16a5ad4b7238af23ac836f7a624157a2d822a3
parent3b31e6711b4681d0024044b7cb7078c602693cfa (diff)
downloadbcm5719-llvm-8a6ef4e6b2fbc3609ee46f4a4e0f5b8848b9b5cb.tar.gz
bcm5719-llvm-8a6ef4e6b2fbc3609ee46f4a4e0f5b8848b9b5cb.zip
Remove dead code.
Since now we always set SHT_PROGBITS to .eh_frame sections, this code path is not executed at runtime. llvm-svn: 270446
-rw-r--r--lld/ELF/Writer.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp
index 8927ea7d0b6..0ee7a46d68f 100644
--- a/lld/ELF/Writer.cpp
+++ b/lld/ELF/Writer.cpp
@@ -1208,14 +1208,7 @@ OutputSectionFactory<ELFT>::createKey(InputSectionBase<ELFT> *C,
if (isa<MergeInputSection<ELFT>>(C))
Alignment = std::max(H->sh_addralign, H->sh_entsize);
- // GNU as can give .eh_frame section type SHT_PROGBITS or SHT_X86_64_UNWIND
- // depending on the construct. We want to canonicalize it so that
- // there is only one .eh_frame in the end.
uint32_t Type = H->sh_type;
- if (Type == SHT_PROGBITS && Config->EMachine == EM_X86_64 &&
- isa<EHInputSection<ELFT>>(C))
- Type = SHT_X86_64_UNWIND;
-
return SectionKey<ELFT::Is64Bits>{OutsecName, Type, Flags, Alignment};
}
OpenPOWER on IntegriCloud