[llvm-commits] CVS: llvm/lib/Analysis/DataStructure/Printer.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Feb 11 13:28:01 PST 2003
Changes in directory llvm/lib/Analysis/DataStructure:
Printer.cpp updated: 1.48 -> 1.49
---
Log message:
Minor tweaks to printing. Close the file before viewing it in viewGraph
---
Diffs of the changes:
Index: llvm/lib/Analysis/DataStructure/Printer.cpp
diff -u llvm/lib/Analysis/DataStructure/Printer.cpp:1.48 llvm/lib/Analysis/DataStructure/Printer.cpp:1.49
--- llvm/lib/Analysis/DataStructure/Printer.cpp:1.48 Mon Feb 10 12:17:07 2003
+++ llvm/lib/Analysis/DataStructure/Printer.cpp Tue Feb 11 13:27:27 2003
@@ -47,6 +47,7 @@
if (N->NodeType & DSNode::Incomplete ) OS << "I";
if (N->NodeType & DSNode::Modified ) OS << "M";
if (N->NodeType & DSNode::Read ) OS << "R";
+ if (N->NodeType & DSNode::DEAD ) OS << "<dead>";
OS << "\n";
}
@@ -64,7 +65,7 @@
if (G->hasFunction())
return "Function " + G->getFunction().getName();
else
- return "Globals graph";
+ return "Global graph";
}
static const char *getGraphProperties(const DSGraph *G) {
@@ -189,6 +190,7 @@
return;
}
print(F);
+ F.close();
if (system("dot -Tps /tmp/tempgraph.dot > /tmp/tempgraph.ps"))
std::cerr << "Error running dot: 'dot' not in path?\n";
system("gv /tmp/tempgraph.ps");
More information about the llvm-commits
mailing list