mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 19:31:58 +00:00
We've got a getSlotSize call already that we use everywhere else,
use it here too. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210227 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
798a829eca
commit
7a8272d73c
@ -982,8 +982,9 @@ bool X86FrameLowering::spillCalleeSavedRegisters(MachineBasicBlock &MBB,
|
||||
DebugLoc DL = MBB.findDebugLoc(MI);
|
||||
|
||||
MachineFunction &MF = *MBB.getParent();
|
||||
|
||||
unsigned SlotSize = STI.is64Bit() ? 8 : 4;
|
||||
const X86RegisterInfo *RegInfo =
|
||||
static_cast<const X86RegisterInfo *>(MF.getTarget().getRegisterInfo());
|
||||
unsigned SlotSize = RegInfo->getSlotSize();
|
||||
unsigned FPReg = TRI->getFrameRegister(MF);
|
||||
unsigned CalleeFrameSize = 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user