commit | e4c8b9b78cb2995576c52d30875bfe4dbbdee7e3 | [log] [tgz] |
---|---|---|
author | Rafael Espindola <rafael.espindola@gmail.com> | Fri Apr 07 16:10:46 2017 +0000 |
committer | Rafael Espindola <rafael.espindola@gmail.com> | Fri Apr 07 16:10:46 2017 +0000 |
tree | 63cdeae47e42a64d3c307b32655228c852de2bf6 | |
parent | 58fa724494b6d3d85fa1e5f6b6c309f3f3ee69d4 [diff] [blame] |
Simplify this further. Thanks to Rui for noticing it. llvm-svn: 299777
diff --git a/lld/ELF/LinkerScript.cpp b/lld/ELF/LinkerScript.cpp index cd6093e..fdd6220 100644 --- a/lld/ELF/LinkerScript.cpp +++ b/lld/ELF/LinkerScript.cpp
@@ -332,8 +332,7 @@ 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;