diff options
author | Jim Laskey <jlaskey@mac.com> | 2007-02-27 11:55:45 +0000 |
---|---|---|
committer | Jim Laskey <jlaskey@mac.com> | 2007-02-27 11:55:45 +0000 |
commit | d313a9b1484c52e3f784de5064ce86bdbd9b26dc (patch) | |
tree | 0d2fec95332de5cd4fac3cc4ef0b16f3604136b5 /lib/Target/PowerPC/PPCMachineFunctionInfo.h | |
parent | 45cdf30d0aedbc437cd1029695de8f66f3136fac (diff) | |
download | external_llvm-d313a9b1484c52e3f784de5064ce86bdbd9b26dc.tar.gz external_llvm-d313a9b1484c52e3f784de5064ce86bdbd9b26dc.tar.bz2 external_llvm-d313a9b1484c52e3f784de5064ce86bdbd9b26dc.zip |
Duplicate use of LR, take 2.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34666 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCMachineFunctionInfo.h')
-rw-r--r-- | lib/Target/PowerPC/PPCMachineFunctionInfo.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Target/PowerPC/PPCMachineFunctionInfo.h b/lib/Target/PowerPC/PPCMachineFunctionInfo.h index b3e10176d2..e227456e63 100644 --- a/lib/Target/PowerPC/PPCMachineFunctionInfo.h +++ b/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; } }; |