forked from OSchip/llvm-project
[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:
parent
0b4dd91582
commit
6cac582de5
|
@ -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());
|
||||
|
|
|
@ -69,7 +69,6 @@ private:
|
|||
llvm::BumpPtrAllocator _alloc;
|
||||
MipsTargetLayout<Mips32ElELFType> _targetLayout;
|
||||
MipsTargetRelocationHandler _relocationHandler;
|
||||
AtomLayout *_gotSymAtom;
|
||||
AtomLayout *_gpDispSymAtom;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue