We've got a getSlotSize call already that we use everywhere else,

use it here too.

llvm-svn: 210227
This commit is contained in:
Eric Christopher 2014-06-05 00:22:13 +00:00
parent 151304691c
commit 21a5e5c1c7
1 changed files with 3 additions and 2 deletions

View File

@ -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;