[lld] r362367 - [LLD][ELF] - Remove dead code. NFC.

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 3 02:23:01 PDT 2019


Author: grimar
Date: Mon Jun  3 02:23:01 2019
New Revision: 362367

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

I believe this line was dead after r362356.

Modified:
    lld/trunk/ELF/LinkerScript.cpp

Modified: lld/trunk/ELF/LinkerScript.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/LinkerScript.cpp?rev=362367&r1=362366&r2=362367&view=diff
==============================================================================
--- lld/trunk/ELF/LinkerScript.cpp (original)
+++ lld/trunk/ELF/LinkerScript.cpp Mon Jun  3 02:23:01 2019
@@ -481,7 +481,6 @@ void LinkerScript::processSectionCommand
       if (Sec->Name == "/DISCARD/") {
         discard(V);
         Sec->SectionCommands.clear();
-        Sec->SectionIndex = 0; // Not an orphan.
         continue;
       }
 




More information about the llvm-commits mailing list