Fix misc. small issues with debug visualization.

Detailed bug report:
http://llvm.org/bugs/show_bug.cgi?id=3873

llvm-svn: 67768
This commit is contained in:
Mikhail Glushenkov 2009-03-26 21:23:48 +00:00
parent 3d46b1cfb4
commit 87aa96ddf3
1 changed files with 6 additions and 1 deletions

View 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 {