diff options
author | Chad Rosier <mcrosier@apple.com> | 2012-07-16 17:42:13 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2012-07-16 17:42:13 +0000 |
commit | 10e8207c9eedf02013899bb3eb4ce535d51512a5 (patch) | |
tree | 2604abe6614c5688dfefd541292006d15b11e0e3 /llvm/lib | |
parent | c4ce5dfe2da865e5e3e81b3638c4c8491d5a6233 (diff) | |
download | bcm5719-llvm-10e8207c9eedf02013899bb3eb4ce535d51512a5.tar.gz bcm5719-llvm-10e8207c9eedf02013899bb3eb4ce535d51512a5.zip |
With r160248 in place this code is no longer needed.
llvm-svn: 160293
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Target/X86/X86FrameLowering.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/Target/X86/X86MachineFunctionInfo.h | 16 |
2 files changed, 1 insertions, 17 deletions
diff --git a/llvm/lib/Target/X86/X86FrameLowering.cpp b/llvm/lib/Target/X86/X86FrameLowering.cpp index 2775736717d..22386885b6b 100644 --- a/llvm/lib/Target/X86/X86FrameLowering.cpp +++ b/llvm/lib/Target/X86/X86FrameLowering.cpp @@ -936,8 +936,6 @@ void X86FrameLowering::emitPrologue(MachineFunction &MF) const { BuildMI(MBB, MBBI, DL, TII.get(Opc), BasePtr) .addReg(StackPtr) .setMIFlag(MachineInstr::FrameSetup); - - X86FI->setBasePtrStackAdjustment(NumBytes); } if (( (!HasFP && NumBytes) || PushedRegs) && needsFrameMoves) { diff --git a/llvm/lib/Target/X86/X86MachineFunctionInfo.h b/llvm/lib/Target/X86/X86MachineFunctionInfo.h index cdf907b8c04..f83a525f373 100644 --- a/llvm/lib/Target/X86/X86MachineFunctionInfo.h +++ b/llvm/lib/Target/X86/X86MachineFunctionInfo.h @@ -69,10 +69,6 @@ class X86MachineFunctionInfo : public MachineFunctionInfo { /// NumLocalDynamics - Number of local-dynamic TLS accesses. unsigned NumLocalDynamics; - /// After the stack pointer has been restore from the base pointer we - /// use a cached adjusment. - int64_t BPAdj; - public: X86MachineFunctionInfo() : ForceFramePointer(false), CalleeSavedFrameSize(0), @@ -101,8 +97,7 @@ public: VarArgsGPOffset(0), VarArgsFPOffset(0), ArgumentStackSize(0), - NumLocalDynamics(0), - BPAdj(0) {} + NumLocalDynamics(0) {} bool getForceFramePointer() const { return ForceFramePointer;} void setForceFramePointer(bool forceFP) { ForceFramePointer = forceFP; } @@ -143,15 +138,6 @@ public: unsigned getNumLocalDynamicTLSAccesses() const { return NumLocalDynamics; } void incNumLocalDynamicTLSAccesses() { ++NumLocalDynamics; } - /// setBasePtrStackAdjustment - If we're restoring the stack pointer from the - /// base pointer, due to dynamic stack realignment + VLAs, we cache the - /// number of bytes initially allocated for the stack frame. In obscure - /// cases (e.g., tail calls with byval argument and no stack protector), the - /// stack gets adjusted outside of the prolog, but these shouldn't be - /// considered when restoring from the base pointer. Currently, this is only - /// needed for x86. - void setBasePtrStackAdjustment(int64_t adj) { BPAdj = adj; } - int64_t getBasePtrStackAdjustment() const { return BPAdj; } }; } // End llvm namespace |