Fix for PR341
authorChris Lattner <sabre@nondot.org>
Thu, 15 Jul 2004 02:40:04 +0000 (02:40 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 15 Jul 2004 02:40:04 +0000 (02:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14845 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Bytecode/Writer/ConstantWriter.cpp
lib/CodeGen/InstrSched/SchedGraph.cpp
lib/Target/SparcV9/InstrSched/SchedGraph.cpp

index 8ea192b0a82f8af1a5ab190a07fc08adcf19dd16..7aa8febda3ea3a639876c9df93790de730383d97 100644 (file)
@@ -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;
index 9688f3930bb01199c08956a342d3735754771267..2c7a123c43c4ac10feda80f3da724bf4ec4e2695 100644 (file)
@@ -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"; 
index 9688f3930bb01199c08956a342d3735754771267..2c7a123c43c4ac10feda80f3da724bf4ec4e2695 100644 (file)
@@ -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";