summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCMachineFunctionInfo.h
diff options
context:
space:
mode:
authorJim Laskey <jlaskey@mac.com>2007-02-27 11:55:45 +0000
committerJim Laskey <jlaskey@mac.com>2007-02-27 11:55:45 +0000
commitb6e200bd68f0b9f32c0ab4efc6027fbf268f55c2 (patch)
treeb1446cdebaa212ef369f4941c0499034d76b1eba /llvm/lib/Target/PowerPC/PPCMachineFunctionInfo.h
parent19ec8a9a2cb920c05252666d1c327463a7b060ba (diff)
downloadbcm5719-llvm-b6e200bd68f0b9f32c0ab4efc6027fbf268f55c2.tar.gz
bcm5719-llvm-b6e200bd68f0b9f32c0ab4efc6027fbf268f55c2.zip
Duplicate use of LR, take 2.
llvm-svn: 34666
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCMachineFunctionInfo.h')
-rw-r--r--llvm/lib/Target/PowerPC/PPCMachineFunctionInfo.h7
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; }
};
OpenPOWER on IntegriCloud