[lld] r317002 - [ELF] - Remove useless code. NFC.

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 31 07:21:30 PDT 2017


Author: grimar
Date: Tue Oct 31 07:21:30 2017
New Revision: 317002

URL: http://llvm.org/viewvc/llvm-project?rev=317002&view=rev
Log:
[ELF] - Remove useless code. NFC.

We set Type and Flags inside OutputSection::addSection,
so this lines looks to be excessive.

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=317002&r1=317001&r2=317002&view=diff
==============================================================================
--- lld/trunk/ELF/OutputSections.cpp (original)
+++ lld/trunk/ELF/OutputSections.cpp Tue Oct 31 07:21:30 2017
@@ -215,8 +215,6 @@ void elf::sortByOrder(MutableArrayRef<In
 
 static OutputSection *createSection(InputSectionBase *IS, StringRef OutsecName) {
   OutputSection *Sec = Script->createOutputSection(OutsecName, "<internal>");
-  Sec->Type = IS->Type;
-  Sec->Flags = IS->Flags;
   Sec->addSection(cast<InputSection>(IS));
   return Sec;
 }




More information about the llvm-commits mailing list