From f51c7f56caea364e4ad7adecff0413dc74686bb3 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 15 Jul 2004 02:40:04 +0000 Subject: Fix for PR341 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14845 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Bytecode/Writer/ConstantWriter.cpp | 2 +- lib/CodeGen/InstrSched/SchedGraph.cpp | 4 ++-- lib/Target/SparcV9/InstrSched/SchedGraph.cpp | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/Bytecode/Writer/ConstantWriter.cpp b/lib/Bytecode/Writer/ConstantWriter.cpp index 8ea192b..7aa8feb 100644 --- a/lib/Bytecode/Writer/ConstantWriter.cpp +++ b/lib/Bytecode/Writer/ConstantWriter.cpp @@ -189,7 +189,7 @@ void BytecodeWriter::outputConstant(const Constant *CPV) { case Type::LabelTyID: default: std::cerr << __FILE__ << ":" << __LINE__ << ": Don't know how to serialize" - << " type '" << CPV->getType() << "'\n"; + << " type '" << *CPV->getType() << "'\n"; break; } return; diff --git a/lib/CodeGen/InstrSched/SchedGraph.cpp b/lib/CodeGen/InstrSched/SchedGraph.cpp index 9688f39..2c7a123 100644 --- a/lib/CodeGen/InstrSched/SchedGraph.cpp +++ b/lib/CodeGen/InstrSched/SchedGraph.cpp @@ -107,7 +107,7 @@ SchedGraph::~SchedGraph() { void SchedGraph::dump() const { std::cerr << " Sched Graph for Basic Block: " << MBB.getBasicBlock()->getName() - << " (" << MBB.getBasicBlock() << ")" + << " (" << *MBB.getBasicBlock() << ")" << "\n\n Actual Root nodes: "; for (SchedGraphNodeCommon::const_iterator I = graphRoot->beginOutEdges(), E = graphRoot->endOutEdges(); @@ -694,7 +694,7 @@ void SchedGraphEdge::print(std::ostream &os) const { os<< "Control Dep"; break; case SchedGraphEdge::ValueDep: - os<< "Reg Value " << val; + os<< "Reg Value " << *val; break; case SchedGraphEdge::MemoryDep: os<< "Memory Dep"; diff --git a/lib/Target/SparcV9/InstrSched/SchedGraph.cpp b/lib/Target/SparcV9/InstrSched/SchedGraph.cpp index 9688f39..2c7a123 100644 --- a/lib/Target/SparcV9/InstrSched/SchedGraph.cpp +++ b/lib/Target/SparcV9/InstrSched/SchedGraph.cpp @@ -107,7 +107,7 @@ SchedGraph::~SchedGraph() { void SchedGraph::dump() const { std::cerr << " Sched Graph for Basic Block: " << MBB.getBasicBlock()->getName() - << " (" << MBB.getBasicBlock() << ")" + << " (" << *MBB.getBasicBlock() << ")" << "\n\n Actual Root nodes: "; for (SchedGraphNodeCommon::const_iterator I = graphRoot->beginOutEdges(), E = graphRoot->endOutEdges(); @@ -694,7 +694,7 @@ void SchedGraphEdge::print(std::ostream &os) const { os<< "Control Dep"; break; case SchedGraphEdge::ValueDep: - os<< "Reg Value " << val; + os<< "Reg Value " << *val; break; case SchedGraphEdge::MemoryDep: os<< "Memory Dep"; -- cgit v1.1