diff --git a/lib/CompilerDriver/CompilationGraph.cpp b/lib/CompilerDriver/CompilationGraph.cpp index b8a66e17f53..6112cfe1b52 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 {