[llvm] r232129 - Use the cached subtarget off of the machine function.

Eric Christopher echristo at gmail.com
Thu Mar 12 17:49:50 PDT 2015


Author: echristo
Date: Thu Mar 12 19:49:50 2015
New Revision: 232129

URL: http://llvm.org/viewvc/llvm-project?rev=232129&view=rev
Log:
Use the cached subtarget off of the machine function.

Modified:
    llvm/trunk/lib/CodeGen/StackMaps.cpp

Modified: llvm/trunk/lib/CodeGen/StackMaps.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/StackMaps.cpp?rev=232129&r1=232128&r2=232129&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/StackMaps.cpp (original)
+++ llvm/trunk/lib/CodeGen/StackMaps.cpp Thu Mar 12 19:49:50 2015
@@ -123,7 +123,7 @@ StackMaps::parseOperand(MachineInstr::co
     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(





More information about the llvm-commits mailing list