projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Have MachineFunction cache a pointer to the subtarget to make lookups
[oota-llvm.git]
/
lib
/
Target
/
ARM
/
Thumb2RegisterInfo.cpp
diff --git
a/lib/Target/ARM/Thumb2RegisterInfo.cpp
b/lib/Target/ARM/Thumb2RegisterInfo.cpp
index df72c811a3d6d07810e8b03ce7fc1759ddedec26..0d5d85a00614486ff1735afd50086cefadd61512 100644
(file)
--- a/
lib/Target/ARM/Thumb2RegisterInfo.cpp
+++ b/
lib/Target/ARM/Thumb2RegisterInfo.cpp
@@
-40,8
+40,7
@@
Thumb2RegisterInfo::emitLoadConstPool(MachineBasicBlock &MBB,
ARMCC::CondCodes Pred, unsigned PredReg,
unsigned MIFlags) const {
MachineFunction &MF = *MBB.getParent();
ARMCC::CondCodes Pred, unsigned PredReg,
unsigned MIFlags) const {
MachineFunction &MF = *MBB.getParent();
- const TargetInstrInfo &TII =
- *MF.getTarget().getSubtargetImpl()->getInstrInfo();
+ const TargetInstrInfo &TII = *MF.getSubtarget().getInstrInfo();
MachineConstantPool *ConstantPool = MF.getConstantPool();
const Constant *C = ConstantInt::get(
Type::getInt32Ty(MBB.getParent()->getFunction()->getContext()), Val);
MachineConstantPool *ConstantPool = MF.getConstantPool();
const Constant *C = ConstantInt::get(
Type::getInt32Ty(MBB.getParent()->getFunction()->getContext()), Val);