[lld] r264028 - DenseMap resize() is now named reserved(), adapt the call sites

Mehdi Amini via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 22 00:31:35 PDT 2016


Author: mehdi_amini
Date: Tue Mar 22 02:31:35 2016
New Revision: 264028

URL: http://llvm.org/viewvc/llvm-project?rev=264028&view=rev
Log:
DenseMap resize() is now named reserved(), adapt the call sites

From: Mehdi Amini <mehdi.amini at apple.com>

Modified:
    lld/trunk/lib/ReaderWriter/MachO/LayoutPass.cpp

Modified: lld/trunk/lib/ReaderWriter/MachO/LayoutPass.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/MachO/LayoutPass.cpp?rev=264028&r1=264027&r2=264028&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/MachO/LayoutPass.cpp (original)
+++ lld/trunk/lib/ReaderWriter/MachO/LayoutPass.cpp Tue Mar 22 02:31:35 2016
@@ -333,8 +333,8 @@ void LayoutPass::buildFollowOnTable(Simp
   ScopedTask task(getDefaultDomain(), "LayoutPass::buildFollowOnTable");
   // Set the initial size of the followon and the followonNext hash to the
   // number of atoms that we have.
-  _followOnRoots.resize(range.size());
-  _followOnNexts.resize(range.size());
+  _followOnRoots.reserve(range.size());
+  _followOnNexts.reserve(range.size());
   for (const DefinedAtom *ai : range) {
     for (const Reference *r : *ai) {
       if (r->kindNamespace() != lld::Reference::KindNamespace::all ||




More information about the llvm-commits mailing list