summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/StackMaps.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2015-03-19 23:27:42 +0000
committerEric Christopher <echristo@gmail.com>2015-03-19 23:27:42 +0000
commitd83003ea59ca5592580fa2e0ef27c3cac907aa8f (patch)
tree04edcd2ba3053575a08354f26e025f9328fa32b7 /llvm/lib/CodeGen/StackMaps.cpp
parent7585fb2d9f61f403c533aa29f34104d31df91068 (diff)
downloadbcm5719-llvm-d83003ea59ca5592580fa2e0ef27c3cac907aa8f.tar.gz
bcm5719-llvm-d83003ea59ca5592580fa2e0ef27c3cac907aa8f.zip
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. llvm-svn: 232783
Diffstat (limited to 'llvm/lib/CodeGen/StackMaps.cpp')
-rw-r--r--llvm/lib/CodeGen/StackMaps.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/StackMaps.cpp b/llvm/lib/CodeGen/StackMaps.cpp
index 6422f1fe418..0393bf62bf2 100644
--- a/llvm/lib/CodeGen/StackMaps.cpp
+++ b/llvm/lib/CodeGen/StackMaps.cpp
@@ -160,7 +160,7 @@ StackMaps::createLiveOutReg(unsigned Reg, const TargetRegisterInfo *TRI) const {
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.
OpenPOWER on IntegriCloud