summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineInstr.cpp
diff options
context:
space:
mode:
authorAndrew V. Tischenko <andrew.v.tischenko@gmail.com>2018-02-26 09:43:21 +0000
committerAndrew V. Tischenko <andrew.v.tischenko@gmail.com>2018-02-26 09:43:21 +0000
commit083891925bb634b1b0227d6668e388ea0267b942 (patch)
treec9cc0a62b0558b6fe451e64c355f83b235d3fbf2 /llvm/lib/CodeGen/MachineInstr.cpp
parentde6b342e90b2626c347aaabfc833eef5f4097cf1 (diff)
downloadbcm5719-llvm-083891925bb634b1b0227d6668e388ea0267b942.tar.gz
bcm5719-llvm-083891925bb634b1b0227d6668e388ea0267b942.zip
The final step to close D41278 [MachineCombiner] Improve debug output (NFC).
Differential Revision: https://reviews.llvm.org/D41278 llvm-svn: 326074
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineInstr.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp
index 98993b2146e..7d04e6b4d77 100644
--- a/llvm/lib/CodeGen/MachineInstr.cpp
+++ b/llvm/lib/CodeGen/MachineInstr.cpp
@@ -1235,6 +1235,8 @@ void MachineInstr::print(raw_ostream &OS, bool IsStandalone, bool SkipOpers,
if (const MachineFunction *MF = getMFIfAvailable(*this)) {
F = &MF->getFunction();
M = F->getParent();
+ if (!TII)
+ TII = MF->getSubtarget().getInstrInfo();
}
ModuleSlotTracker MST(M);
OpenPOWER on IntegriCloud