[llvm-commits] CVS: llvm/lib/Analysis/DataStructure/Printer.cpp
Brian Gaeke
gaeke at cs.uiuc.edu
Wed May 5 01:10:04 PDT 2004
Changes in directory llvm/lib/Analysis/DataStructure:
Printer.cpp updated: 1.67 -> 1.68
---
Log message:
Move the stuff that fixes the size, orientation & fonts of graphs to
the debugging functions that call "dot". These fixed settings have
various problems: for example, the fixed size that is set in the graph
traits classes is not appropriate for turning the dot file into a PNG,
and if TrueType font rendering is being used, the 'Courier' TrueType font
may not be installed. It seems easy enough to specify these things on the
command line, anyhow.
---
Diffs of the changes: (+2 -7)
Index: llvm/lib/Analysis/DataStructure/Printer.cpp
diff -u llvm/lib/Analysis/DataStructure/Printer.cpp:1.67 llvm/lib/Analysis/DataStructure/Printer.cpp:1.68
--- llvm/lib/Analysis/DataStructure/Printer.cpp:1.67 Tue Mar 2 15:39:43 2004
+++ llvm/lib/Analysis/DataStructure/Printer.cpp Wed May 5 01:10:06 2004
@@ -93,17 +93,12 @@
}
}
- static const char *getGraphProperties(const DSGraph *G) {
- return "\tsize=\"10,7.5\";\n"
- "\trotate=\"90\";\n";
- }
-
static std::string getNodeLabel(const DSNode *Node, const DSGraph *Graph) {
return getCaption(Node, Graph);
}
static std::string getNodeAttributes(const DSNode *N) {
- return "shape=Mrecord";//fontname=Courier";
+ return "shape=Mrecord";
}
/// addCustomGraphFeatures - Use this graph writing hook to emit call nodes
@@ -234,7 +229,7 @@
}
print(F);
F.close();
- if (system("dot -Tps /tmp/tempgraph.dot > /tmp/tempgraph.ps"))
+ if (system("dot -Tps -Gsize=10,7.5 -Grotate=90 /tmp/tempgraph.dot > /tmp/tempgraph.ps"))
std::cerr << "Error running dot: 'dot' not in path?\n";
system("gv /tmp/tempgraph.ps");
system("rm /tmp/tempgraph.dot /tmp/tempgraph.ps");
More information about the llvm-commits
mailing list