mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-28 03:25:23 +00:00
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:
@@ -32,7 +32,7 @@ TargetMachine *llvm::allocatePowerPCTargetMachine(const Module &M,
|
|||||||
PowerPCTargetMachine::PowerPCTargetMachine(const Module &M,
|
PowerPCTargetMachine::PowerPCTargetMachine(const Module &M,
|
||||||
IntrinsicLowering *IL)
|
IntrinsicLowering *IL)
|
||||||
: TargetMachine("PowerPC", IL, true, 4, 4, 4, 4, 4),
|
: 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
|
/// addPassesToEmitAssembly - Add passes to the specified pass manager
|
||||||
|
@@ -50,7 +50,7 @@ TargetMachine *llvm::allocateX86TargetMachine(const Module &M,
|
|||||||
///
|
///
|
||||||
X86TargetMachine::X86TargetMachine(const Module &M, IntrinsicLowering *IL)
|
X86TargetMachine::X86TargetMachine(const Module &M, IntrinsicLowering *IL)
|
||||||
: TargetMachine("X86", IL, true, 4, 4, 4, 4, 4),
|
: 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) {
|
JITInfo(*this) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user