[lld] r232914 - [Mips] Use allocator from the base class

Simon Atanasyan simon at atanasyan.com
Sun Mar 22 08:41:11 PDT 2015


Author: atanasyan
Date: Sun Mar 22 10:41:10 2015
New Revision: 232914

URL: http://llvm.org/viewvc/llvm-project?rev=232914&view=rev
Log:
[Mips] Use allocator from the base class

No functional changes.

Modified:
    lld/trunk/lib/ReaderWriter/ELF/Mips/MipsTargetHandler.h

Modified: lld/trunk/lib/ReaderWriter/ELF/Mips/MipsTargetHandler.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/Mips/MipsTargetHandler.h?rev=232914&r1=232913&r2=232914&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/Mips/MipsTargetHandler.h (original)
+++ lld/trunk/lib/ReaderWriter/ELF/Mips/MipsTargetHandler.h Sun Mar 22 10:41:10 2015
@@ -28,8 +28,8 @@ class MipsTargetLayout final : public Ta
 public:
   MipsTargetLayout(MipsLinkingContext &ctx)
       : TargetLayout<ELFType>(ctx),
-        _gotSection(new (_alloc) MipsGOTSection<ELFType>(ctx)),
-        _pltSection(new (_alloc) MipsPLTSection<ELFType>(ctx)) {}
+        _gotSection(new (this->_allocator) MipsGOTSection<ELFType>(ctx)),
+        _pltSection(new (this->_allocator) MipsPLTSection<ELFType>(ctx)) {}
 
   const MipsGOTSection<ELFType> &getGOTSection() const { return *_gotSection; }
   const MipsPLTSection<ELFType> &getPLTSection() const { return *_pltSection; }
@@ -78,7 +78,6 @@ public:
   }
 
 private:
-  llvm::BumpPtrAllocator _alloc;
   MipsGOTSection<ELFType> *_gotSection;
   MipsPLTSection<ELFType> *_pltSection;
   llvm::Optional<AtomLayout *> _gpAtom;





More information about the llvm-commits mailing list