mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-11 16:37:42 +00:00
Keep the stack frame aligned.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5081 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
00032bf6cc
commit
69c198863d
@ -324,6 +324,10 @@ bool RegAllocSimple::runOnMachineFunction(MachineFunction &Fn) {
|
||||
MBB != MBBe; ++MBB)
|
||||
AllocateBasicBlock(*MBB);
|
||||
|
||||
// Round stack allocation up to a nice alignment to keep the stack aligned
|
||||
// FIXME: This is X86 specific! Move to frame manager
|
||||
NumBytesAllocated = (NumBytesAllocated + 3) & ~3;
|
||||
|
||||
// Add prologue to the function...
|
||||
RegInfo->emitPrologue(Fn, NumBytesAllocated);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user