From: Eric Christopher Date: Fri, 13 Mar 2015 00:49:50 +0000 (+0000) Subject: Use the cached subtarget off of the machine function. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a0485f5b9f75b2796d2abf04b6782ff54ce330a5;p=oota-llvm.git Use the cached subtarget off of the machine function. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232129 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/StackMaps.cpp b/lib/CodeGen/StackMaps.cpp index 5d4641956b4..6422f1fe418 100644 --- a/lib/CodeGen/StackMaps.cpp +++ b/lib/CodeGen/StackMaps.cpp @@ -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(