Use the cached subtarget off of the machine function.
authorEric Christopher <echristo@gmail.com>
Fri, 13 Mar 2015 00:49:50 +0000 (00:49 +0000)
committerEric Christopher <echristo@gmail.com>
Fri, 13 Mar 2015 00:49:50 +0000 (00:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232129 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/StackMaps.cpp

index 5d4641956b4385ae1476418a6656fbcac5ceb030..6422f1fe418eb5e7d93ba384c82741fb9d04dfbc 100644 (file)
@@ -123,7 +123,7 @@ StackMaps::parseOperand(MachineInstr::const_mop_iterator MOI,
     assert(TargetRegisterInfo::isPhysicalRegister(MOI->getReg()) &&
            "Virtreg operands should have been rewritten before now.");
     const TargetRegisterClass *RC =
-        AP.TM.getSubtargetImpl()->getRegisterInfo()->getMinimalPhysRegClass(
+        AP.MF->getSubtarget().getRegisterInfo()->getMinimalPhysRegClass(
             MOI->getReg());
     assert(!MOI->getSubReg() && "Physical subreg still around.");
     Locs.push_back(