aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-07-15 02:40:04 +0000
committerChris Lattner <sabre@nondot.org>2004-07-15 02:40:04 +0000
commitf51c7f56caea364e4ad7adecff0413dc74686bb3 (patch)
treeeb92afc262728fac3596a87bbd63947657a2b716
parent017fdcb76def65c32083fa7e2e4cb1f69b77eed0 (diff)
downloadexternal_llvm-f51c7f56caea364e4ad7adecff0413dc74686bb3.zip
external_llvm-f51c7f56caea364e4ad7adecff0413dc74686bb3.tar.gz
external_llvm-f51c7f56caea364e4ad7adecff0413dc74686bb3.tar.bz2
Fix for PR341
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14845 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Bytecode/Writer/ConstantWriter.cpp2
-rw-r--r--lib/CodeGen/InstrSched/SchedGraph.cpp4
-rw-r--r--lib/Target/SparcV9/InstrSched/SchedGraph.cpp4
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";