[lld] r302672 - Remove one more use of section names.

Rafael Espindola via llvm-commits llvm-commits at lists.llvm.org
Wed May 10 07:35:20 PDT 2017


Author: rafael
Date: Wed May 10 09:35:20 2017
New Revision: 302672

URL: http://llvm.org/viewvc/llvm-project?rev=302672&view=rev
Log:
Remove one more use of section names.

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=302672&r1=302671&r2=302672&view=diff
==============================================================================
--- lld/trunk/ELF/LinkerScript.cpp (original)
+++ lld/trunk/ELF/LinkerScript.cpp Wed May 10 09:35:20 2017
@@ -828,7 +828,7 @@ void LinkerScript::placeOrphanSections()
     // representations agree on which input sections to use.
     auto Pos = std::find_if(CmdIter, E, [&](BaseCommand *Base) {
       auto *Cmd = dyn_cast<OutputSectionCommand>(Base);
-      return Cmd && Cmd->Name == Name;
+      return Cmd && Cmd->Sec == Sec;
     });
     if (Pos == E) {
       auto *Cmd = make<OutputSectionCommand>(Name);




More information about the llvm-commits mailing list