[Mips] Do not store a pointer to the AtomLayout related to the

_GLOBAL_OFFSET_TABLE_ symbol. We do not use this ponter anywhere after
assigning of virtual address.

llvm-svn: 199237
This commit is contained in:
Simon Atanasyan 2014-01-14 18:19:35 +00:00
parent 0b4dd91582
commit 6cac582de5
2 changed files with 1 additions and 3 deletions

View File

@ -171,8 +171,7 @@ void MipsTargetHandler::finalizeSymbolValues() {
auto gotAtomIter = _targetLayout.findAbsoluteAtom("_GLOBAL_OFFSET_TABLE_");
assert(gotAtomIter != _targetLayout.absoluteAtoms().end());
_gotSymAtom = (*gotAtomIter);
_gotSymAtom->_virtualAddr = gotSection ? gotSection->virtualAddr() : 0;
(*gotAtomIter)->_virtualAddr = gotSection ? gotSection->virtualAddr() : 0;
auto gpDispAtomIter = _targetLayout.findAbsoluteAtom("_gp_disp");
assert(gpDispAtomIter != _targetLayout.absoluteAtoms().end());

View File

@ -69,7 +69,6 @@ private:
llvm::BumpPtrAllocator _alloc;
MipsTargetLayout<Mips32ElELFType> _targetLayout;
MipsTargetRelocationHandler _relocationHandler;
AtomLayout *_gotSymAtom;
AtomLayout *_gpDispSymAtom;
};