summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/MSP430/MSP430MachineFunctionInfo.h
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2009-12-07 02:28:10 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2009-12-07 02:28:10 +0000
commitff4ab51400008683644e77de663c96286ed4ae8c (patch)
treee19d7ef62bfd925e6e3ca16a6596c5df7faa2a15 /llvm/lib/Target/MSP430/MSP430MachineFunctionInfo.h
parentb4be8ce5374c2d510d8ac5ccc22ca5a73b1dd6dc (diff)
downloadbcm5719-llvm-ff4ab51400008683644e77de663c96286ed4ae8c.tar.gz
bcm5719-llvm-ff4ab51400008683644e77de663c96286ed4ae8c.zip
Add lowering of returnaddr and frameaddr intrinsics. Shamelessly stolen from x86 :)
llvm-svn: 90740
Diffstat (limited to 'llvm/lib/Target/MSP430/MSP430MachineFunctionInfo.h')
-rw-r--r--llvm/lib/Target/MSP430/MSP430MachineFunctionInfo.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/llvm/lib/Target/MSP430/MSP430MachineFunctionInfo.h b/llvm/lib/Target/MSP430/MSP430MachineFunctionInfo.h
index 1d26ae3e667..383fd2e9821 100644
--- a/llvm/lib/Target/MSP430/MSP430MachineFunctionInfo.h
+++ b/llvm/lib/Target/MSP430/MSP430MachineFunctionInfo.h
@@ -25,14 +25,20 @@ class MSP430MachineFunctionInfo : public MachineFunctionInfo {
/// stack frame in bytes.
unsigned CalleeSavedFrameSize;
+ /// ReturnAddrIndex - FrameIndex for return slot.
+ int ReturnAddrIndex;
+
public:
MSP430MachineFunctionInfo() : CalleeSavedFrameSize(0) {}
explicit MSP430MachineFunctionInfo(MachineFunction &MF)
- : CalleeSavedFrameSize(0) {}
+ : CalleeSavedFrameSize(0), ReturnAddrIndex(0) {}
unsigned getCalleeSavedFrameSize() const { return CalleeSavedFrameSize; }
void setCalleeSavedFrameSize(unsigned bytes) { CalleeSavedFrameSize = bytes; }
+
+ int getRAIndex() const { return ReturnAddrIndex; }
+ void setRAIndex(int Index) { ReturnAddrIndex = Index; }
};
} // End llvm namespace
OpenPOWER on IntegriCloud