diff options
| author | Jim Laskey <jlaskey@mac.com> | 2007-02-23 20:34:16 +0000 |
|---|---|---|
| committer | Jim Laskey <jlaskey@mac.com> | 2007-02-23 20:34:16 +0000 |
| commit | 2f28a3cf08df472a349ff5ea4860736e17eb7cea (patch) | |
| tree | 6418e66b6a2185b77da801254eebe049b675fff9 /llvm/lib/Target/PowerPC/PPCMachineFunctionInfo.h | |
| parent | 3e906c48d3e5e7204087331b4a750231e6efd06c (diff) | |
| download | bcm5719-llvm-2f28a3cf08df472a349ff5ea4860736e17eb7cea.tar.gz bcm5719-llvm-2f28a3cf08df472a349ff5ea4860736e17eb7cea.zip | |
Don't spill LR as a callee saved register.
llvm-svn: 34533
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCMachineFunctionInfo.h')
| -rw-r--r-- | llvm/lib/Target/PowerPC/PPCMachineFunctionInfo.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCMachineFunctionInfo.h b/llvm/lib/Target/PowerPC/PPCMachineFunctionInfo.h index b3e10176d23..e227456e635 100644 --- a/llvm/lib/Target/PowerPC/PPCMachineFunctionInfo.h +++ b/llvm/lib/Target/PowerPC/PPCMachineFunctionInfo.h @@ -26,6 +26,10 @@ private: /// stored. Also used as an anchor for instructions that need to be altered /// when using frame pointers (dyna_add, dyna_sub.) int FramePointerSaveIndex; + + /// UsesLR - Indicates whether LR is used in the current function. + /// + bool UsesLR; public: PPCFunctionInfo(MachineFunction& MF) @@ -34,6 +38,9 @@ public: int getFramePointerSaveIndex() const { return FramePointerSaveIndex; } void setFramePointerSaveIndex(int Idx) { FramePointerSaveIndex = Idx; } + + void setUsesLR(bool U) { UsesLR = U; } + bool usesLR() { return UsesLR; } }; |

