[lld] r299777 - Simplify this further.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 7 09:10:46 PDT 2017
Author: rafael
Date: Fri Apr 7 11:10:46 2017
New Revision: 299777
URL: http://llvm.org/viewvc/llvm-project?rev=299777&view=rev
Log:
Simplify this further.
Thanks to Rui for noticing it.
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=299777&r1=299776&r2=299777&view=diff
==============================================================================
--- lld/trunk/ELF/LinkerScript.cpp (original)
+++ lld/trunk/ELF/LinkerScript.cpp Fri Apr 7 11:10:46 2017
@@ -332,8 +332,7 @@ LinkerScript::createInputSectionList(Out
continue;
Cmd->Sections = computeInputSections(Cmd);
- for (InputSectionBase *S : Cmd->Sections)
- Ret.push_back(S);
+ Ret.insert(Ret.end(), Cmd->Sections.begin(), Cmd->Sections.end());
}
return Ret;
More information about the llvm-commits
mailing list