diff options
author | Jim Laskey <jlaskey@mac.com> | 2006-04-07 16:34:46 +0000 |
---|---|---|
committer | Jim Laskey <jlaskey@mac.com> | 2006-04-07 16:34:46 +0000 |
commit | 2d7298c362e3ec5f16ebeddf2e68de0ebeb1ff9a (patch) | |
tree | 3ead77af5d3ba6edcc69872a3ebce4ce8ba0dc90 /llvm/lib/CodeGen/PrologEpilogInserter.cpp | |
parent | e690a93c64effabe71dc4450e0913508a8440dd8 (diff) | |
download | bcm5719-llvm-2d7298c362e3ec5f16ebeddf2e68de0ebeb1ff9a.tar.gz bcm5719-llvm-2d7298c362e3ec5f16ebeddf2e68de0ebeb1ff9a.zip |
Foundation for call frame information.
llvm-svn: 27491
Diffstat (limited to 'llvm/lib/CodeGen/PrologEpilogInserter.cpp')
-rw-r--r-- | llvm/lib/CodeGen/PrologEpilogInserter.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/PrologEpilogInserter.cpp b/llvm/lib/CodeGen/PrologEpilogInserter.cpp index aabf78bd338..114610bd253 100644 --- a/llvm/lib/CodeGen/PrologEpilogInserter.cpp +++ b/llvm/lib/CodeGen/PrologEpilogInserter.cpp @@ -36,6 +36,12 @@ namespace { /// frame indexes with appropriate references. /// bool runOnMachineFunction(MachineFunction &Fn) { + // Get MachineDebugInfo so that we can track the construction of the + // frame. + if (MachineDebugInfo *DI = getAnalysisToUpdate<MachineDebugInfo>()) { + Fn.getFrameInfo()->setMachineDebugInfo(DI); + } + // Scan the function for modified caller saved registers and insert spill // code for any caller saved registers that are modified. Also calculate // the MaxCallFrameSize and HasCalls variables for the function's frame |