[llvm] r232783 - Use the cached subtarget on the MachineFunction when the AsmPrinter
Eric Christopher
echristo at gmail.com
Thu Mar 19 16:27:43 PDT 2015
Author: echristo
Date: Thu Mar 19 18:27:42 2015
New Revision: 232783
URL: http://llvm.org/viewvc/llvm-project?rev=232783&view=rev
Log:
Use the cached subtarget on the MachineFunction when the AsmPrinter
will have a MachineFunction, i.e. in places other than the module
level doInitialize/doFinalize.
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=232783&r1=232782&r2=232783&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/StackMaps.cpp (original)
+++ llvm/trunk/lib/CodeGen/StackMaps.cpp Thu Mar 19 18:27:42 2015
@@ -160,7 +160,7 @@ StackMaps::createLiveOutReg(unsigned Reg
StackMaps::LiveOutVec
StackMaps::parseRegisterLiveOutMask(const uint32_t *Mask) const {
assert(Mask && "No register mask specified");
- const TargetRegisterInfo *TRI = AP.TM.getSubtargetImpl()->getRegisterInfo();
+ const TargetRegisterInfo *TRI = AP.MF->getSubtarget().getRegisterInfo();
LiveOutVec LiveOuts;
// Create a LiveOutReg for each bit that is set in the register mask.
More information about the llvm-commits
mailing list