summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/ScheduleDAGInstrs.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2015-02-27 00:11:34 +0000
committerEric Christopher <echristo@gmail.com>2015-02-27 00:11:34 +0000
commit1cdefae9c47208ab0542432ce283d2ded721076b (patch)
treeb78cf25c525fd5aac3dd134fc54af7de6077e422 /llvm/lib/CodeGen/ScheduleDAGInstrs.cpp
parent655bd0200cd2f85deb6a843db4c8c23d2f8a66bc (diff)
downloadbcm5719-llvm-1cdefae9c47208ab0542432ce283d2ded721076b.tar.gz
bcm5719-llvm-1cdefae9c47208ab0542432ce283d2ded721076b.zip
Rewrite MachineOperand::print and MachineInstr::print to avoid
uses of TM->getSubtargetImpl and propagate to all calls. This could be a debugging regression in places where we had a TargetMachine and/or MachineFunction but don't have it as part of the MachineInstr. Fixing this would require passing a MachineFunction/Function down through the print operator, but none of the existing uses in tree seem to do this. llvm-svn: 230710
Diffstat (limited to 'llvm/lib/CodeGen/ScheduleDAGInstrs.cpp')
-rw-r--r--llvm/lib/CodeGen/ScheduleDAGInstrs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/ScheduleDAGInstrs.cpp b/llvm/lib/CodeGen/ScheduleDAGInstrs.cpp
index 78bfd23e1b3..959b1c227cb 100644
--- a/llvm/lib/CodeGen/ScheduleDAGInstrs.cpp
+++ b/llvm/lib/CodeGen/ScheduleDAGInstrs.cpp
@@ -1211,7 +1211,7 @@ std::string ScheduleDAGInstrs::getGraphNodeLabel(const SUnit *SU) const {
else if (SU == &ExitSU)
oss << "<exit>";
else
- SU->getInstr()->print(oss, &TM, /*SkipOpers=*/true);
+ SU->getInstr()->print(oss, /*SkipOpers=*/true);
return oss.str();
}
OpenPOWER on IntegriCloud