mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +00:00
Provide the register scavenger to processFunctionBeforeFrameFinalized
Add the current PEI register scavenger as a parameter to the processFunctionBeforeFrameFinalized callback. This change is necessary in order to allow the PowerPC target code to set the register scavenger frame index after the save-area offset adjustments performed by processFunctionBeforeFrameFinalized. Only after these adjustments have been made is it possible to estimate the size of the stack frame. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177108 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -841,8 +841,8 @@ PPCFrameLowering::processFunctionBeforeCalleeSavedScan(MachineFunction &MF,
|
||||
}
|
||||
}
|
||||
|
||||
void PPCFrameLowering::processFunctionBeforeFrameFinalized(MachineFunction &MF)
|
||||
const {
|
||||
void PPCFrameLowering::processFunctionBeforeFrameFinalized(MachineFunction &MF,
|
||||
RegScavenger *) const {
|
||||
// Early exit if not using the SVR4 ABI.
|
||||
if (!Subtarget.isSVR4ABI())
|
||||
return;
|
||||
|
Reference in New Issue
Block a user