diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-01-23 09:38:11 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-01-23 09:38:11 +0000 |
commit | 367372a30c36776e31958f0dc38306f32b80aa7c (patch) | |
tree | 79e5f97b48c73da206ac439af53ced76b447fe0b /lib/Target/ARM/ARMRegisterInfo.cpp | |
parent | c9708122836670953b7f7b3a86cc263b63fe3e3e (diff) |
PEI is now responsible for adding MaxCallFrameSize to frame size and align the stack. Each target can further adjust the frame size if necessary.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33460 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMRegisterInfo.cpp')
-rw-r--r-- | lib/Target/ARM/ARMRegisterInfo.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/Target/ARM/ARMRegisterInfo.cpp b/lib/Target/ARM/ARMRegisterInfo.cpp index 2b179cf821..1338a99b0a 100644 --- a/lib/Target/ARM/ARMRegisterInfo.cpp +++ b/lib/Target/ARM/ARMRegisterInfo.cpp @@ -915,21 +915,6 @@ void ARMRegisterInfo::emitPrologue(MachineFunction &MF) const { } } - // If necessary, add one more SUBri to account for the call frame - // and/or local storage, alloca area. - if (MFI->hasCalls() || MF.getFrameInfo()->hasVarSizedObjects()) { - // We reserve argument space for call sites in the function immediately on - // entry to the current function. This eliminates the need for add/sub - // brackets around call sites. - if (!hasFP(MF)) - NumBytes += MFI->getMaxCallFrameSize(); - - // Round the size to a multiple of the alignment. - NumBytes = (NumBytes+Align-1)/Align*Align; - } - - MFI->setStackSize(NumBytes); - // Determine starting offsets of spill areas. if (AFI->hasStackFrame()) { unsigned DPRCSOffset = NumBytes - (GPRCS1Size + GPRCS2Size + DPRCSSize); |