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/PrologEpilogInserter.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/PrologEpilogInserter.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/PrologEpilogInserter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/PrologEpilogInserter.cpp b/llvm/lib/CodeGen/PrologEpilogInserter.cpp index e9a998b8739..6157e3fc99f 100644 --- a/llvm/lib/CodeGen/PrologEpilogInserter.cpp +++ b/llvm/lib/CodeGen/PrologEpilogInserter.cpp @@ -206,7 +206,7 @@ void PEI::calculateFrameObjectOffsets(MachineFunction &Fn) { // of stack growth -- so it's always positive. int Offset = TFI.getOffsetOfLocalArea(); if (StackGrowsDown) - Offset = -Offset; + Offset = -Offset; assert(Offset >= 0 && "Local area offset should be in direction of stack growth"); @@ -256,7 +256,7 @@ void PEI::calculateFrameObjectOffsets(MachineFunction &Fn) { Offset = (Offset+StackAlignment-1)/StackAlignment*StackAlignment; // Set the final value of the stack pointer... - FFI->setStackSize(Offset-TFI.getOffsetOfLocalArea()); + FFI->setStackSize(Offset+TFI.getOffsetOfLocalArea()); } |

