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://review.tizen.org/git/?a=commitdiff_plain;h=ef9e01eadaa0c33edf8f1092150312f5fd3fdbd7;p=platform%2Fupstream%2Fllvm.git Use the cached subtarget off of the machine function. llvm-svn: 232129 --- diff --git a/llvm/lib/CodeGen/StackMaps.cpp b/llvm/lib/CodeGen/StackMaps.cpp index 5d46419..6422f1f 100644 --- a/llvm/lib/CodeGen/StackMaps.cpp +++ b/llvm/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(