Simplify this further.

Thanks to Rui for noticing it.

llvm-svn: 299777
This commit is contained in:
Rafael Espindola 2017-04-07 16:10:46 +00:00
parent 58fa724494
commit e4c8b9b78c
1 changed files with 1 additions and 2 deletions

View File

@ -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;