aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJim Laskey <jlaskey@mac.com>2006-11-17 21:19:15 +0000
committerJim Laskey <jlaskey@mac.com>2006-11-17 21:19:15 +0000
commit9dea41d9e1c9e288630db503668468560aa4286e (patch)
tree2e8e00db47551e8927b02e080e43515cadd83a48 /lib
parent7d689e8b62575b7e7d2ca8ff10e4cbd06a5cca55 (diff)
Hopefully a good crack at making debugging work on intel -disable-fp-elim.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31830 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/MRegisterInfo.cpp3
-rw-r--r--lib/Target/X86/X86RegisterInfo.cpp4
2 files changed, 5 insertions, 2 deletions
diff --git a/lib/Target/MRegisterInfo.cpp b/lib/Target/MRegisterInfo.cpp
index eb58a3a059..515ff9af73 100644
--- a/lib/Target/MRegisterInfo.cpp
+++ b/lib/Target/MRegisterInfo.cpp
@@ -57,7 +57,8 @@ void MRegisterInfo::getLocation(MachineFunction &MF, unsigned Index,
ML.set(getFrameRegister(MF),
MFI->getObjectOffset(Index) +
MFI->getStackSize() -
- TFI.getOffsetOfLocalArea());
+ TFI.getOffsetOfLocalArea() +
+ MFI->getOffsetAdjustment());
}
/// getInitialFrameState - Returns a list of machine moves that are assumed
diff --git a/lib/Target/X86/X86RegisterInfo.cpp b/lib/Target/X86/X86RegisterInfo.cpp
index f061aeed7e..d9057e048c 100644
--- a/lib/Target/X86/X86RegisterInfo.cpp
+++ b/lib/Target/X86/X86RegisterInfo.cpp
@@ -1029,7 +1029,9 @@ void X86RegisterInfo::emitPrologue(MachineFunction &MF) const {
// Get the offset of the stack slot for the EBP register... which is
// guaranteed to be the last slot by processFunctionBeforeFrameFinalized.
int EBPOffset = MFI->getObjectOffset(MFI->getObjectIndexBegin())+SlotSize;
-
+ // Update the frame offset adjustment.
+ MFI->setOffsetAdjustment(SlotSize-NumBytes);
+
// Save EBP into the appropriate stack slot...
// mov [ESP-<offset>], EBP
MI = addRegOffset(BuildMI(TII, Is64Bit ? X86::MOV64mr : X86::MOV32mr, 5),