diff options
author | Lauro Ramos Venancio <lauro.venancio@gmail.com> | 2007-05-03 20:28:35 +0000 |
---|---|---|
committer | Lauro Ramos Venancio <lauro.venancio@gmail.com> | 2007-05-03 20:28:35 +0000 |
commit | e8e5495474d67cd5151bd88e502be3f46ace7a85 (patch) | |
tree | b7d7ba2474eb1c24a5ad9ac687609dd67912cee1 /lib/Target/ARM/ARMRegisterInfo.cpp | |
parent | 2a98ccabb4efe9882cdddd4b659e4935fc646040 (diff) |
Debug support for arm-linux.
Patch by Raul Herbster.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36690 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMRegisterInfo.cpp')
-rw-r--r-- | lib/Target/ARM/ARMRegisterInfo.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Target/ARM/ARMRegisterInfo.cpp b/lib/Target/ARM/ARMRegisterInfo.cpp index 4fd0f8929a..a0eb137e94 100644 --- a/lib/Target/ARM/ARMRegisterInfo.cpp +++ b/lib/Target/ARM/ARMRegisterInfo.cpp @@ -1373,6 +1373,11 @@ void ARMRegisterInfo::emitPrologue(MachineFunction &MF) const { emitSPUpdate(MBB, MBBI, -NumBytes, isThumb, TII); } + if(STI.isTargetELF() && hasFP(MF)) { + MFI->setOffsetAdjustment(MFI->getOffsetAdjustment() - + AFI->getFramePtrSpillOffset()); + } + AFI->setGPRCalleeSavedArea1Size(GPRCS1Size); AFI->setGPRCalleeSavedArea2Size(GPRCS2Size); AFI->setDPRCalleeSavedAreaSize(DPRCSSize); |