[lld] r230007 - [Mach-O] Remove redundant allocator
Jean-Daniel Dupas
devlists at shadowlab.org
Fri Feb 20 03:57:06 PST 2015
Author: jddupas
Date: Fri Feb 20 05:57:06 2015
New Revision: 230007
URL: http://llvm.org/viewvc/llvm-project?rev=230007&view=rev
Log:
[Mach-O] Remove redundant allocator
Modified:
lld/trunk/lib/ReaderWriter/MachO/ExecutableAtoms.hpp
Modified: lld/trunk/lib/ReaderWriter/MachO/ExecutableAtoms.hpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/MachO/ExecutableAtoms.hpp?rev=230007&r1=230006&r2=230007&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/MachO/ExecutableAtoms.hpp (original)
+++ lld/trunk/lib/ReaderWriter/MachO/ExecutableAtoms.hpp Fri Feb 20 05:57:06 2015
@@ -97,7 +97,7 @@ public:
const File *find(StringRef sym, bool dataSymbolOnly) const override {
if (sym.equals("___dso_handle") || sym.equals(_machHeaderSymbolName)) {
- _definedAtoms._atoms.push_back(new (_alloc) MachODefinedAtom(
+ _definedAtoms._atoms.push_back(new (allocator()) MachODefinedAtom(
*this, sym, DefinedAtom::scopeLinkageUnit,
DefinedAtom::typeMachHeader, DefinedAtom::mergeNo, false, false,
ArrayRef<uint8_t>(), DefinedAtom::Alignment(12,0)));
@@ -128,7 +128,6 @@ private:
atom_collection_vector<SharedLibraryAtom> _sharedLibraryAtoms;
atom_collection_vector<AbsoluteAtom> _absoluteAtoms;
StringRef _machHeaderSymbolName;
- mutable llvm::BumpPtrAllocator _alloc;
};
} // namespace mach_o
More information about the llvm-commits
mailing list