[lld] r198785 - [Mips] Do not save GOT headers atoms into the RelocationPass class
Simon Atanasyan
simon at atanasyan.com
Wed Jan 8 12:42:23 PST 2014
Author: atanasyan
Date: Wed Jan 8 14:42:23 2014
New Revision: 198785
URL: http://llvm.org/viewvc/llvm-project?rev=198785&view=rev
Log:
[Mips] Do not save GOT headers atoms into the RelocationPass class
fields.
Modified:
lld/trunk/lib/ReaderWriter/ELF/Mips/MipsRelocationPass.cpp
Modified: lld/trunk/lib/ReaderWriter/ELF/Mips/MipsRelocationPass.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/Mips/MipsRelocationPass.cpp?rev=198785&r1=198784&r2=198785&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/Mips/MipsRelocationPass.cpp (original)
+++ lld/trunk/lib/ReaderWriter/ELF/Mips/MipsRelocationPass.cpp Wed Jan 8 14:42:23 2014
@@ -64,11 +64,9 @@ public:
class RelocationPass : public Pass {
public:
- RelocationPass(MipsLinkingContext &context)
- : _file(context), _got0(new (_file._alloc) GOT0Atom(_file)),
- _got1(new (_file._alloc) GOTModulePointerAtom(_file)) {
- _localGotVector.push_back(_got0);
- _localGotVector.push_back(_got1);
+ RelocationPass(MipsLinkingContext &context) : _file(context) {
+ _localGotVector.push_back(new (_file._alloc) GOT0Atom(_file));
+ _localGotVector.push_back(new (_file._alloc) GOTModulePointerAtom(_file));
}
virtual void perform(std::unique_ptr<MutableFile> &mf) {
@@ -98,10 +96,6 @@ private:
/// \brief Owner of all the Atoms created by this pass.
RelocationPassFile _file;
- /// \brief GOT header entries.
- GOTAtom *_got0;
- GOTAtom *_got1;
-
/// \brief Map Atoms to their GOT entries.
llvm::DenseMap<const Atom *, GOTAtom *> _gotMap;
More information about the llvm-commits
mailing list