diff options
| author | Hal Finkel <hfinkel@anl.gov> | 2013-03-14 20:33:40 +0000 |
|---|---|---|
| committer | Hal Finkel <hfinkel@anl.gov> | 2013-03-14 20:33:40 +0000 |
| commit | 5a765fddb0a4c6cdb707a6d69177506a7e4b2443 (patch) | |
| tree | 8123988eb283fa28d9aec3475555ea16d031cf81 /llvm/lib/Target/PowerPC/PPCFrameLowering.h | |
| parent | ad26f4ded2a07fe9b25daca5a09c2d9b0c17a6c5 (diff) | |
| download | bcm5719-llvm-5a765fddb0a4c6cdb707a6d69177506a7e4b2443.tar.gz bcm5719-llvm-5a765fddb0a4c6cdb707a6d69177506a7e4b2443.zip | |
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.
llvm-svn: 177108
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCFrameLowering.h')
| -rw-r--r-- | llvm/lib/Target/PowerPC/PPCFrameLowering.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCFrameLowering.h b/llvm/lib/Target/PowerPC/PPCFrameLowering.h index a07c1704533..8d9d395dc59 100644 --- a/llvm/lib/Target/PowerPC/PPCFrameLowering.h +++ b/llvm/lib/Target/PowerPC/PPCFrameLowering.h @@ -44,7 +44,8 @@ public: void processFunctionBeforeCalleeSavedScan(MachineFunction &MF, RegScavenger *RS = NULL) const; - void processFunctionBeforeFrameFinalized(MachineFunction &MF) const; + void processFunctionBeforeFrameFinalized(MachineFunction &MF, + RegScavenger *RS = NULL) const; bool spillCalleeSavedRegisters(MachineBasicBlock &MBB, MachineBasicBlock::iterator MI, |

