[Mach-O] Remove redundant allocator
authorJean-Daniel Dupas <devlists@shadowlab.org>
Fri, 20 Feb 2015 11:57:06 +0000 (11:57 +0000)
committerJean-Daniel Dupas <devlists@shadowlab.org>
Fri, 20 Feb 2015 11:57:06 +0000 (11:57 +0000)
llvm-svn: 230007

lld/lib/ReaderWriter/MachO/ExecutableAtoms.hpp

index df0414d..628cb5a 100644 (file)
@@ -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