summaryrefslogtreecommitdiff
path: root/lib/Target/X86/X86MachineFunctionInfo.h
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2007-08-15 17:12:32 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2007-08-15 17:12:32 +0000
commita2780e11ef0b757f0e5851bcf76c28c2f07dd379 (patch)
tree13f549a8dc2b8e01bbe63a9b3cbe244a544882e2 /lib/Target/X86/X86MachineFunctionInfo.h
parentd42b8be3da14037df4684f5cc9eed626e53e1128 (diff)
downloadllvm-a2780e11ef0b757f0e5851bcf76c28c2f07dd379.tar.gz
llvm-a2780e11ef0b757f0e5851bcf76c28c2f07dd379.tar.bz2
llvm-a2780e11ef0b757f0e5851bcf76c28c2f07dd379.tar.xz
Move ReturnAddrIndex variable to X86MachineFunctionInfo structure. This fixed
hard to catch bugs with retaddr lowering git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41104 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86MachineFunctionInfo.h')
-rw-r--r--lib/Target/X86/X86MachineFunctionInfo.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/lib/Target/X86/X86MachineFunctionInfo.h b/lib/Target/X86/X86MachineFunctionInfo.h
index 7a21fb2f27..e50a104f21 100644
--- a/lib/Target/X86/X86MachineFunctionInfo.h
+++ b/lib/Target/X86/X86MachineFunctionInfo.h
@@ -44,17 +44,21 @@ class X86MachineFunctionInfo : public MachineFunctionInfo {
/// If the function requires additional name decoration, DecorationStyle holds
/// the right way to do so.
NameDecorationStyle DecorationStyle;
-
+
+ // FrameIndex for return slot.
+ int ReturnAddrIndex;
public:
X86MachineFunctionInfo() : ForceFramePointer(false),
CalleeSavedFrameSize(0),
BytesToPopOnReturn(0),
- DecorationStyle(None) {}
+ DecorationStyle(None),
+ ReturnAddrIndex(0) {}
X86MachineFunctionInfo(MachineFunction &MF) : ForceFramePointer(false),
CalleeSavedFrameSize(0),
BytesToPopOnReturn(0),
- DecorationStyle(None) {}
+ DecorationStyle(None),
+ ReturnAddrIndex(0) {}
bool getForceFramePointer() const { return ForceFramePointer;}
void setForceFramePointer(bool forceFP) { ForceFramePointer = forceFP; }
@@ -67,7 +71,9 @@ public:
NameDecorationStyle getDecorationStyle() const { return DecorationStyle; }
void setDecorationStyle(NameDecorationStyle style) { DecorationStyle = style;}
-
+
+ int getRAIndex() const { return ReturnAddrIndex; }
+ void setRAIndex(int Index) { ReturnAddrIndex = Index; }
};
} // End llvm namespace