[llvm-commits] CVS: llvm/lib/Analysis/CFGPrinter.cpp
Brian Gaeke
gaeke at cs.uiuc.edu
Wed May 5 01:10:01 PDT 2004
Changes in directory llvm/lib/Analysis:
CFGPrinter.cpp updated: 1.7 -> 1.8
---
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 -5)
Index: llvm/lib/Analysis/CFGPrinter.cpp
diff -u llvm/lib/Analysis/CFGPrinter.cpp:1.7 llvm/lib/Analysis/CFGPrinter.cpp:1.8
--- llvm/lib/Analysis/CFGPrinter.cpp:1.7 Wed Apr 28 23:04:47 2004
+++ llvm/lib/Analysis/CFGPrinter.cpp Wed May 5 01:10:06 2004
@@ -75,10 +75,6 @@
return OutStr;
}
- static std::string getNodeAttributes(const BasicBlock *N) {
- return "fontname=Courier";
- }
-
static std::string getEdgeSourceLabel(const BasicBlock *Node,
succ_const_iterator I) {
// Label source of conditional branches with "T" or "F"
@@ -155,7 +151,8 @@
std::cerr << "\n";
std::cerr << "Running 'dot' program... " << std::flush;
- if (system(("dot -Tps " + Filename + " > /tmp/cfg.tempgraph.ps").c_str())) {
+ if (system(("dot -Tps -Nfontname=Courier -Gsize=7.5,10 " + Filename
+ + " > /tmp/cfg.tempgraph.ps").c_str())) {
std::cerr << "Error running dot: 'dot' not in path?\n";
} else {
std::cerr << "\n";
More information about the llvm-commits
mailing list