Have MachineFunction cache a pointer to the subtarget to make lookups
[oota-llvm.git] / lib / Target / SystemZ / SystemZLongBranch.cpp
index 5274c1a2ce594c32dfe5bad9fe813d219ca07d0f..8dab44e7f8af593b7e300e202b1ce7b73b46125f 100644 (file)
@@ -448,8 +448,7 @@ void SystemZLongBranch::relaxBranches() {
 }
 
 bool SystemZLongBranch::runOnMachineFunction(MachineFunction &F) {
-  TII = static_cast<const SystemZInstrInfo *>(
-      F.getTarget().getSubtargetImpl()->getInstrInfo());
+  TII = static_cast<const SystemZInstrInfo *>(F.getSubtarget().getInstrInfo());
   MF = &F;
   uint64_t Size = initMBBInfo();
   if (Size <= MaxForwardRange || !mustRelaxABranch())