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 | 3cd3c725e0498a5f2c49412cbee2e9907bc59f91 (patch) | |
tree | 95a5d039e007875089d6379e5f3f5f7a181d5354 /lib/CompilerDriver/CompilationGraph.cpp | |
parent | 9d7b5309c267048114f1438ec0366923c99ca34d (diff) | |
download | external_llvm-3cd3c725e0498a5f2c49412cbee2e9907bc59f91.zip external_llvm-3cd3c725e0498a5f2c49412cbee2e9907bc59f91.tar.gz external_llvm-3cd3c725e0498a5f2c49412cbee2e9907bc59f91.tar.bz2 |
Fix misc. small issues with debug visualization.
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
Diffstat (limited to 'lib/CompilerDriver/CompilationGraph.cpp')
-rw-r--r-- | lib/CompilerDriver/CompilationGraph.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/CompilerDriver/CompilationGraph.cpp b/lib/CompilerDriver/CompilationGraph.cpp index b8a66e1..6112cfe 100644 --- a/lib/CompilerDriver/CompilationGraph.cpp +++ b/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 { |