llvm.org GIT mirror llvm / 9c353a8
Use emplace_back to replace size() and resize(). Summary: This speeds-up thin-link for ~29% for large programs. Reviewers: tejohnson Reviewed By: tejohnson Subscribers: grandinj, sanjoy, llvm-commits Differential Revision: https://reviews.llvm.org/D35145 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@307543 91177308-0d34-0410-b5e6-96231b3b80d8 Dehao Chen 3 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
476476
477477 std::unique_ptr Obj = std::move(*ObjOrErr);
478478
479 Modules.resize(Modules.size() + 1);
479 Modules.emplace_back();
480480 claimed_file &cf = Modules.back();
481481
482482 cf.handle = file->handle;