projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
798a829
)
We've got a getSlotSize call already that we use everywhere else,
author
Eric Christopher
<echristo@gmail.com>
Thu, 5 Jun 2014 00:22:13 +0000
(
00:22
+0000)
committer
Eric Christopher
<echristo@gmail.com>
Thu, 5 Jun 2014 00:22:13 +0000
(
00:22
+0000)
use it here too.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210227
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/X86/X86FrameLowering.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/X86/X86FrameLowering.cpp
b/lib/Target/X86/X86FrameLowering.cpp
index 48ae836a7803c09da32552e81bf3e8c8397896f1..8942566687c458e80542ae2d0d6a81ccb7a988a9 100644
(file)
--- a/
lib/Target/X86/X86FrameLowering.cpp
+++ b/
lib/Target/X86/X86FrameLowering.cpp
@@
-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;