summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2017-04-07 16:10:46 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2017-04-07 16:10:46 +0000
commite4c8b9b78cb2995576c52d30875bfe4dbbdee7e3 (patch)
tree63cdeae47e42a64d3c307b32655228c852de2bf6
parent58fa724494b6d3d85fa1e5f6b6c309f3f3ee69d4 (diff)
downloadbcm5719-llvm-e4c8b9b78cb2995576c52d30875bfe4dbbdee7e3.tar.gz
bcm5719-llvm-e4c8b9b78cb2995576c52d30875bfe4dbbdee7e3.zip
Simplify this further.
Thanks to Rui for noticing it. llvm-svn: 299777
-rw-r--r--lld/ELF/LinkerScript.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lld/ELF/LinkerScript.cpp b/lld/ELF/LinkerScript.cpp
index cd6093e5bc2..fdd6220c015 100644
--- a/lld/ELF/LinkerScript.cpp
+++ b/lld/ELF/LinkerScript.cpp
@@ -332,8 +332,7 @@ LinkerScript::createInputSectionList(OutputSectionCommand &OutCmd) {
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;
OpenPOWER on IntegriCloud