diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-07-17 07:59:08 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-07-17 07:59:08 +0000 |
commit | 89d1659cf2db49162742ea3a261832b70e2897f9 (patch) | |
tree | 7376e3d34db22e59a358330791e4d22f588d2d9e /lib/Target/X86/X86MachineFunctionInfo.h | |
parent | 8d1b8f7e388879c0a3e098845b6a5dad63449f3d (diff) | |
download | external_llvm-89d1659cf2db49162742ea3a261832b70e2897f9.tar.gz external_llvm-89d1659cf2db49162742ea3a261832b70e2897f9.tar.bz2 external_llvm-89d1659cf2db49162742ea3a261832b70e2897f9.zip |
Use push / pop for prologues and epilogues.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@39967 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86MachineFunctionInfo.h')
-rw-r--r-- | lib/Target/X86/X86MachineFunctionInfo.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/Target/X86/X86MachineFunctionInfo.h b/lib/Target/X86/X86MachineFunctionInfo.h index b8cf1c416d..7a21fb2f27 100644 --- a/lib/Target/X86/X86MachineFunctionInfo.h +++ b/lib/Target/X86/X86MachineFunctionInfo.h @@ -33,6 +33,10 @@ class X86MachineFunctionInfo : public MachineFunctionInfo { /// contains stack pointer re-alignment code which requires FP. bool ForceFramePointer; + /// CalleeSavedFrameSize - Size of the callee-saved register portion of the + /// stack frame in bytes. + unsigned CalleeSavedFrameSize; + /// BytesToPopOnReturn - amount of bytes function pops on return. /// Used on windows platform for stdcall & fastcall name decoration unsigned BytesToPopOnReturn; @@ -43,16 +47,21 @@ class X86MachineFunctionInfo : public MachineFunctionInfo { public: X86MachineFunctionInfo() : ForceFramePointer(false), + CalleeSavedFrameSize(0), BytesToPopOnReturn(0), DecorationStyle(None) {} X86MachineFunctionInfo(MachineFunction &MF) : ForceFramePointer(false), + CalleeSavedFrameSize(0), BytesToPopOnReturn(0), DecorationStyle(None) {} bool getForceFramePointer() const { return ForceFramePointer;} void setForceFramePointer(bool forceFP) { ForceFramePointer = forceFP; } + unsigned getCalleeSavedFrameSize() const { return CalleeSavedFrameSize; } + void setCalleeSavedFrameSize(unsigned bytes) { CalleeSavedFrameSize = bytes; } + unsigned getBytesToPopOnReturn() const { return BytesToPopOnReturn; } void setBytesToPopOnReturn (unsigned bytes) { BytesToPopOnReturn = bytes;} |