]> granicus.if.org Git - llvm/commit
Use emplace_back to replace size() and resize().
authorDehao Chen <dehao@google.com>
Mon, 10 Jul 2017 15:31:53 +0000 (15:31 +0000)
committerDehao Chen <dehao@google.com>
Mon, 10 Jul 2017 15:31:53 +0000 (15:31 +0000)
commit9c353a84fb0f7701ea53713a516ccedadb3badc5
tree99c7d45c04a71c157b847ce751983c7f13d6d618
parent5be3d3e74b3530d1325ea9953b871e8eb28a9c96
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
tools/gold/gold-plugin.cpp