diff options
author | Chris Lattner <sabre@nondot.org> | 2004-06-11 06:37:11 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-06-11 06:37:11 +0000 |
commit | 5888b5d4b19677af709ec5cc48607f2071b25637 (patch) | |
tree | 5fade2bafda38d79a330baceb340f3746b96de3f /llvm/lib/CodeGen/MachineFunction.cpp | |
parent | 66f313725cac06a50c38e6d2d60cfb1ba835d48e (diff) | |
download | bcm5719-llvm-5888b5d4b19677af709ec5cc48607f2071b25637.tar.gz bcm5719-llvm-5888b5d4b19677af709ec5cc48607f2071b25637.zip |
Fix fallout from getOffsetOfLocalArea() being negated. Debugging dumps were being
printed incorrectly, and we were reserving 8 extra bytes of stack space for functions
on X86.
llvm-svn: 14152
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineFunction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp index 221d67b82c6..4dfd7f77826 100644 --- a/llvm/lib/CodeGen/MachineFunction.cpp +++ b/llvm/lib/CodeGen/MachineFunction.cpp @@ -201,7 +201,7 @@ void MachineFrameInfo::print(const MachineFunction &MF, std::ostream &OS) const{ if (i < NumFixedObjects) OS << " fixed"; if (i < NumFixedObjects || SO.SPOffset != -1) { - int Off = SO.SPOffset + ValOffset; + int Off = SO.SPOffset - ValOffset; OS << " at location [SP"; if (Off > 0) OS << "+" << Off; |