diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2009-12-07 02:28:10 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2009-12-07 02:28:10 +0000 |
commit | 06ccca5f70ef5f9c3e4add60b6fc842916705029 (patch) | |
tree | 24377fc854d0da204a4f43455cf5e03259577205 /lib/Target/MSP430/MSP430MachineFunctionInfo.h | |
parent | e662f7a8b22e7d31fb55e6502af94d49b78bc942 (diff) | |
download | llvm-06ccca5f70ef5f9c3e4add60b6fc842916705029.tar.gz llvm-06ccca5f70ef5f9c3e4add60b6fc842916705029.tar.bz2 llvm-06ccca5f70ef5f9c3e4add60b6fc842916705029.tar.xz |
Add lowering of returnaddr and frameaddr intrinsics. Shamelessly stolen from x86 :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90740 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/MSP430/MSP430MachineFunctionInfo.h')
-rw-r--r-- | lib/Target/MSP430/MSP430MachineFunctionInfo.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/Target/MSP430/MSP430MachineFunctionInfo.h b/lib/Target/MSP430/MSP430MachineFunctionInfo.h index 1d26ae3e66..383fd2e982 100644 --- a/lib/Target/MSP430/MSP430MachineFunctionInfo.h +++ b/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 |