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 | 3080d23fde4981835d8a7faf46c152441fadb11f (patch) | |
tree | aa50e240fd99da2a198046d32f37dbf17c4064fa /lib/CodeGen/PrologEpilogInserter.cpp | |
parent | 1c6c61a6089fb2bef47de5ee9a5f4acc34047600 (diff) | |
download | llvm-3080d23fde4981835d8a7faf46c152441fadb11f.tar.gz llvm-3080d23fde4981835d8a7faf46c152441fadb11f.tar.bz2 llvm-3080d23fde4981835d8a7faf46c152441fadb11f.tar.xz |
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
Diffstat (limited to 'lib/CodeGen/PrologEpilogInserter.cpp')
-rw-r--r-- | lib/CodeGen/PrologEpilogInserter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/PrologEpilogInserter.cpp b/lib/CodeGen/PrologEpilogInserter.cpp index 32830f57bc..855a8c5f92 100644 --- a/lib/CodeGen/PrologEpilogInserter.cpp +++ b/lib/CodeGen/PrologEpilogInserter.cpp @@ -101,7 +101,7 @@ bool PEI::runOnMachineFunction(MachineFunction &Fn) { // Allow the target machine to make final modifications to the function // before the frame layout is finalized. - TFI->processFunctionBeforeFrameFinalized(Fn); + TFI->processFunctionBeforeFrameFinalized(Fn, RS); // Calculate actual frame offsets for all abstract stack objects... calculateFrameObjectOffsets(Fn); |