diff options
author | Mehdi Amini <mehdi.amini@apple.com> | 2016-03-22 07:31:35 +0000 |
---|---|---|
committer | Mehdi Amini <mehdi.amini@apple.com> | 2016-03-22 07:31:35 +0000 |
commit | d595b08998f8197b689cd04f718355ead2992d9a (patch) | |
tree | aae36d261fb0acf9808925249eed02fc9fc2f922 /lld/lib/ReaderWriter/MachO/LayoutPass.cpp | |
parent | c80430111334f63b6e6af11d74305186f0c5460d (diff) | |
download | bcm5719-llvm-d595b08998f8197b689cd04f718355ead2992d9a.tar.gz bcm5719-llvm-d595b08998f8197b689cd04f718355ead2992d9a.zip |
DenseMap resize() is now named reserved(), adapt the call sites
From: Mehdi Amini <mehdi.amini@apple.com>
llvm-svn: 264028
Diffstat (limited to 'lld/lib/ReaderWriter/MachO/LayoutPass.cpp')
-rw-r--r-- | lld/lib/ReaderWriter/MachO/LayoutPass.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/lib/ReaderWriter/MachO/LayoutPass.cpp b/lld/lib/ReaderWriter/MachO/LayoutPass.cpp index 0c14ee9d39a..e64002e4bf7 100644 --- a/lld/lib/ReaderWriter/MachO/LayoutPass.cpp +++ b/lld/lib/ReaderWriter/MachO/LayoutPass.cpp @@ -333,8 +333,8 @@ void LayoutPass::buildFollowOnTable(SimpleFile::DefinedAtomRange &range) { 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 || |