summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2015-01-29 00:19:33 +0000
committerEric Christopher <echristo@gmail.com>2015-01-29 00:19:33 +0000
commit1b21f0090488d6d55f8fc0f42f9f35adf3a47209 (patch)
tree6e8c54c3da509e828300738cbd7e90459abaf606 /llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp
parent6f508c578bcbb5f850d9ba6c013b11a1c54aa753 (diff)
downloadbcm5719-llvm-1b21f0090488d6d55f8fc0f42f9f35adf3a47209.tar.gz
bcm5719-llvm-1b21f0090488d6d55f8fc0f42f9f35adf3a47209.zip
Migrate ARM except for TTI, AsmPrinter, and frame lowering
away from getSubtargetImpl. llvm-svn: 227399
Diffstat (limited to 'llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp b/llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp
index 7ddf8793e12..fb98a4d5f96 100644
--- a/llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp
+++ b/llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp
@@ -1345,11 +1345,9 @@ bool ARMExpandPseudo::ExpandMBB(MachineBasicBlock &MBB) {
}
bool ARMExpandPseudo::runOnMachineFunction(MachineFunction &MF) {
- const TargetMachine &TM = MF.getTarget();
- TII = static_cast<const ARMBaseInstrInfo *>(
- TM.getSubtargetImpl()->getInstrInfo());
- TRI = TM.getSubtargetImpl()->getRegisterInfo();
- STI = &TM.getSubtarget<ARMSubtarget>();
+ STI = &static_cast<const ARMSubtarget &>(MF.getSubtarget());
+ TII = STI->getInstrInfo();
+ TRI = STI->getRegisterInfo();
AFI = MF.getInfo<ARMFunctionInfo>();
bool Modified = false;
OpenPOWER on IntegriCloud