summaryrefslogtreecommitdiffstats
path: root/lld/ELF/OutputSections.cpp
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2019-03-12 02:18:03 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2019-03-12 02:18:03 +0000
commitb5a307fa244f8cceaaa3735a37ff3cedfdf499cb (patch)
treef0ec765a53c22ae6750a506a6337a7ccf78869df /lld/ELF/OutputSections.cpp
parentbf92b3f48014fdcd51605657604c87a1924729cb (diff)
downloadbcm5719-llvm-b5a307fa244f8cceaaa3735a37ff3cedfdf499cb.tar.gz
bcm5719-llvm-b5a307fa244f8cceaaa3735a37ff3cedfdf499cb.zip
ELF: Remove dead code. NFCI.
The Live bit is already set to false by SectionBase. Differential Revision: https://reviews.llvm.org/D59052 llvm-svn: 355893
Diffstat (limited to 'lld/ELF/OutputSections.cpp')
-rw-r--r--lld/ELF/OutputSections.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/lld/ELF/OutputSections.cpp b/lld/ELF/OutputSections.cpp
index 8614a6097e0..a7f35ebfc57 100644
--- a/lld/ELF/OutputSections.cpp
+++ b/lld/ELF/OutputSections.cpp
@@ -69,9 +69,7 @@ void OutputSection::writeHeaderTo(typename ELFT::Shdr *Shdr) {
OutputSection::OutputSection(StringRef Name, uint32_t Type, uint64_t Flags)
: BaseCommand(OutputSectionKind),
SectionBase(Output, Name, Flags, /*Entsize*/ 0, /*Alignment*/ 1, Type,
- /*Info*/ 0, /*Link*/ 0) {
- Live = false;
-}
+ /*Info*/ 0, /*Link*/ 0) {}
// We allow sections of types listed below to merged into a
// single progbits section. This is typically done by linker
OpenPOWER on IntegriCloud