[PATCH] D46145: Use a buffer when allocating relocations

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 27 08:22:27 PDT 2018


ruiu added a comment.

I wonder if you can make a guess on how many relocations will be inserted to the vector. We know the number of relocations for each input section, so calling reserve() might work.


https://reviews.llvm.org/D46145





More information about the llvm-commits mailing list