[lld] r355893 - ELF: Remove dead code. NFCI.

Peter Collingbourne via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 11 19:18:03 PDT 2019


Author: pcc
Date: Mon Mar 11 19:18:03 2019
New Revision: 355893

URL: http://llvm.org/viewvc/llvm-project?rev=355893&view=rev
Log:
ELF: Remove dead code. NFCI.

The Live bit is already set to false by SectionBase.

Differential Revision: https://reviews.llvm.org/D59052

Modified:
    lld/trunk/ELF/OutputSections.cpp

Modified: lld/trunk/ELF/OutputSections.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/OutputSections.cpp?rev=355893&r1=355892&r2=355893&view=diff
==============================================================================
--- lld/trunk/ELF/OutputSections.cpp (original)
+++ lld/trunk/ELF/OutputSections.cpp Mon Mar 11 19:18:03 2019
@@ -69,9 +69,7 @@ void OutputSection::writeHeaderTo(typena
 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




More information about the llvm-commits mailing list