Fix the fixed stack offset, patch contributed by Vladimir Prus
authorChris Lattner <sabre@nondot.org>
Thu, 10 Jun 2004 06:19:25 +0000 (06:19 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 10 Jun 2004 06:19:25 +0000 (06:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14110 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PowerPCTargetMachine.cpp
lib/Target/X86/X86TargetMachine.cpp

index 9a9a020b64803cab1e88a25efce2b3011fc05752..bf57b155013bc212e3882fcf82c9ec7ffac65958 100644 (file)
@@ -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
index a1884a6725ed4ab9a3cae1522716df7e4a8d4a3b..97d82e0416d65dc4aa079a8dbb916cc1c8deeee1 100644 (file)
@@ -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) {
 }