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
This commit is contained in:
Chris Lattner 2004-06-10 06:19:25 +00:00
parent 3285a6f426
commit 32305f7763
2 changed files with 2 additions and 2 deletions

View 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

View 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) {
}