Have MachineFunction cache a pointer to the subtarget to make lookups
[oota-llvm.git] / lib / Target / SystemZ / SystemZShortenInst.cpp
index a717dad751f852a6e2607a361f54a970baf426d8..ec7a8c40d18a9f903cd43ce0df245c405e52c29d 100644 (file)
@@ -150,8 +150,7 @@ bool SystemZShortenInst::processBlock(MachineBasicBlock &MBB) {
 }
 
 bool SystemZShortenInst::runOnMachineFunction(MachineFunction &F) {
-  TII = static_cast<const SystemZInstrInfo *>(
-      F.getTarget().getSubtargetImpl()->getInstrInfo());
+  TII = static_cast<const SystemZInstrInfo *>(F.getSubtarget().getInstrInfo());
 
   bool Changed = false;
   for (auto &MBB : F)