From 32305f7763ac0ab7ddad2ee97bd075591962cb3a Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 10 Jun 2004 06:19:25 +0000 Subject: [PATCH] Fix the fixed stack offset, patch contributed by Vladimir Prus git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14110 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/PowerPC/PowerPCTargetMachine.cpp | 2 +- lib/Target/X86/X86TargetMachine.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Target/PowerPC/PowerPCTargetMachine.cpp b/lib/Target/PowerPC/PowerPCTargetMachine.cpp index 9a9a020b648..bf57b155013 100644 --- a/lib/Target/PowerPC/PowerPCTargetMachine.cpp +++ b/lib/Target/PowerPC/PowerPCTargetMachine.cpp @@ -32,7 +32,7 @@ TargetMachine *llvm::allocatePowerPCTargetMachine(const Module &M, PowerPCTargetMachine::PowerPCTargetMachine(const Module &M, IntrinsicLowering *IL) : TargetMachine("PowerPC", IL, true, 4, 4, 4, 4, 4), - FrameInfo(TargetFrameInfo::StackGrowsDown, 8, 4), JITInfo(*this) { + FrameInfo(TargetFrameInfo::StackGrowsDown, 8, -4), JITInfo(*this) { } /// addPassesToEmitAssembly - Add passes to the specified pass manager diff --git a/lib/Target/X86/X86TargetMachine.cpp b/lib/Target/X86/X86TargetMachine.cpp index a1884a6725e..97d82e0416d 100644 --- a/lib/Target/X86/X86TargetMachine.cpp +++ b/lib/Target/X86/X86TargetMachine.cpp @@ -50,7 +50,7 @@ TargetMachine *llvm::allocateX86TargetMachine(const Module &M, /// X86TargetMachine::X86TargetMachine(const Module &M, IntrinsicLowering *IL) : TargetMachine("X86", IL, true, 4, 4, 4, 4, 4), - FrameInfo(TargetFrameInfo::StackGrowsDown, 8/*16 for SSE*/, 4), + FrameInfo(TargetFrameInfo::StackGrowsDown, 8/*16 for SSE*/, -4), JITInfo(*this) { }