[lld] r315423 - Add comment.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 10 20:23:17 PDT 2017


Author: ruiu
Date: Tue Oct 10 20:23:17 2017
New Revision: 315423

URL: http://llvm.org/viewvc/llvm-project?rev=315423&view=rev
Log:
Add comment.

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=315423&r1=315422&r2=315423&view=diff
==============================================================================
--- lld/trunk/ELF/LinkerScript.cpp (original)
+++ lld/trunk/ELF/LinkerScript.cpp Tue Oct 10 20:23:17 2017
@@ -275,6 +275,9 @@ LinkerScript::computeInputSections(const
           !Pat.SectionPat.match(Sec->Name))
         continue;
 
+      // It is safe to assume that Sec is an InputSection
+      // because mergeable or EH input sections have already been
+      // handled and eliminated.
       Ret.push_back(cast<InputSection>(Sec));
       Sec->Assigned = true;
     }




More information about the llvm-commits mailing list