Fix misc. small issues with debug visualization.
authorMikhail Glushenkov <foldr@codedgers.com>
Thu, 26 Mar 2009 21:23:48 +0000 (21:23 +0000)
committerMikhail Glushenkov <foldr@codedgers.com>
Thu, 26 Mar 2009 21:23:48 +0000 (21:23 +0000)
Detailed bug report:
http://llvm.org/bugs/show_bug.cgi?id=3873

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67768 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CompilerDriver/CompilationGraph.cpp

index b8a66e17f53bc60d87071e427f39cf3cdd5ed607..6112cfe1b52b5b9f15609a046a1cd78c3f36ddfd 100644 (file)
@@ -465,6 +465,9 @@ int CompilationGraph::Check () {
   // Check for cycles.
   ret += this->CheckCycles();
 
+  if (!ret)
+    std::cerr << "check-graph: no errors found.\n";
+
   return ret;
 }
 
@@ -520,7 +523,9 @@ void CompilationGraph::writeGraph() {
   std::ofstream O("compilation-graph.dot");
 
   if (O.good()) {
-    llvm::WriteGraph(this, "compilation-graph");
+    std::cerr << "Writing 'compilation-graph.dot' file...";
+    llvm::WriteGraph(O, this);
+    std::cerr << "done.\n";
     O.close();
   }
   else {