diff options
author | Mikhail Glushenkov <foldr@codedgers.com> | 2009-03-26 21:23:48 +0000 |
---|---|---|
committer | Mikhail Glushenkov <foldr@codedgers.com> | 2009-03-26 21:23:48 +0000 |
commit | 87aa96ddf37946e386310d1814daa7aa5de752ad (patch) | |
tree | 9e0a5135ac45698ce957b63a303aa8acedf67b23 /llvm/lib | |
parent | 3d46b1cfb401d7df637fea7ede9024720802ccbf (diff) | |
download | bcm5719-llvm-87aa96ddf37946e386310d1814daa7aa5de752ad.tar.gz bcm5719-llvm-87aa96ddf37946e386310d1814daa7aa5de752ad.zip |
Fix misc. small issues with debug visualization.
Detailed bug report:
http://llvm.org/bugs/show_bug.cgi?id=3873
llvm-svn: 67768
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/CompilerDriver/CompilationGraph.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/llvm/lib/CompilerDriver/CompilationGraph.cpp b/llvm/lib/CompilerDriver/CompilationGraph.cpp index b8a66e17f53..6112cfe1b52 100644 --- a/llvm/lib/CompilerDriver/CompilationGraph.cpp +++ b/llvm/lib/CompilerDriver/CompilationGraph.cpp @@ -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 { |