forked from OSchip/llvm-project
Ensure Mips::GP is properly reloaded after a function call. Patch by Sasa Stankovic
llvm-svn: 123768
This commit is contained in:
parent
b495cc1a7b
commit
95dbfac459
|
@ -305,3 +305,10 @@ void MipsFrameLowering::emitEpilogue(MachineFunction &MF,
|
|||
.addReg(Mips::SP).addImm(NumBytes);
|
||||
}
|
||||
}
|
||||
|
||||
void MipsFrameLowering::
|
||||
processFunctionBeforeFrameFinalized(MachineFunction &MF) const {
|
||||
const MipsRegisterInfo *RegInfo =
|
||||
static_cast<const MipsRegisterInfo*>(MF.getTarget().getRegisterInfo());
|
||||
RegInfo->processFunctionBeforeFrameFinalized(MF);
|
||||
}
|
||||
|
|
|
@ -39,6 +39,8 @@ public:
|
|||
void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const;
|
||||
|
||||
bool hasFP(const MachineFunction &MF) const;
|
||||
|
||||
void processFunctionBeforeFrameFinalized(MachineFunction &MF) const;
|
||||
};
|
||||
|
||||
} // End llvm namespace
|
||||
|
|
Loading…
Reference in New Issue