summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2012-07-10 18:27:15 +0000
committerChad Rosier <mcrosier@apple.com>2012-07-10 18:27:15 +0000
commit2b02688b6eee1340cb916934182a02698eea9f36 (patch)
treea639cec44d9fd74b7309b85aeb3f797d60c6d3bf /include
parent542e35f62d88b403f50a69dfab9580c0388c2d6c (diff)
downloadllvm-2b02688b6eee1340cb916934182a02698eea9f36.tar.gz
llvm-2b02688b6eee1340cb916934182a02698eea9f36.tar.bz2
llvm-2b02688b6eee1340cb916934182a02698eea9f36.tar.xz
Move [get|set]BasePtrStackAdjustment() from MachineFrameInfo to
X86MachineFunctionInfo as this is currently only used by X86. If this ever becomes an issue on another arch (e.g., ARM) then we can hoist it back out. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160009 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/MachineFrameInfo.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/include/llvm/CodeGen/MachineFrameInfo.h b/include/llvm/CodeGen/MachineFrameInfo.h
index 78898a4a69..8b958e437e 100644
--- a/include/llvm/CodeGen/MachineFrameInfo.h
+++ b/include/llvm/CodeGen/MachineFrameInfo.h
@@ -215,10 +215,6 @@ class MachineFrameInfo {
/// just allocate them normally.
bool UseLocalStackAllocationBlock;
- /// After the stack pointer has been restore from the base pointer we
- /// use a cached adjusment. Currently only used for x86.
- int64_t BPAdj;
-
public:
explicit MachineFrameInfo(const TargetFrameLowering &tfi) : TFI(tfi) {
StackSize = NumFixedObjects = OffsetAdjustment = MaxAlignment = 0;
@@ -234,7 +230,6 @@ public:
LocalFrameSize = 0;
LocalFrameMaxAlign = 0;
UseLocalStackAllocationBlock = false;
- BPAdj = 0;
}
/// hasStackObjects - Return true if there are any stack objects in this
@@ -543,16 +538,6 @@ public:
void setCalleeSavedInfoValid(bool v) { CSIValid = v; }
- /// 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; }
-
/// getPristineRegs - Return a set of physical registers that are pristine on
/// entry to the MBB.
///