[llvm-commits] CVS: llvm/lib/Analysis/DataStructure/Printer.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Oct 15 20:19:02 PDT 2002
Changes in directory llvm/lib/Analysis/DataStructure:
Printer.cpp updated: 1.13 -> 1.14
---
Log message:
- DSGraph Printing Improvements:
* Print edge source labels again
* Override node shape to be Mrecord again, instead of just record.
---
Diffs of the changes:
Index: llvm/lib/Analysis/DataStructure/Printer.cpp
diff -u llvm/lib/Analysis/DataStructure/Printer.cpp:1.13 llvm/lib/Analysis/DataStructure/Printer.cpp:1.14
--- llvm/lib/Analysis/DataStructure/Printer.cpp:1.13 Sun Oct 13 14:31:57 2002
+++ llvm/lib/Analysis/DataStructure/Printer.cpp Tue Oct 15 20:18:27 2002
@@ -177,8 +177,7 @@
}
static const char *getGraphProperties(DSGraph *G) {
- return "\tnode [shape=Mrecord];\n"
- "\tedge [arrowtail=\"dot\"];\n"
+ return "\tedge [arrowtail=\"dot\"];\n"
"\tsize=\"10,7.5\";\n"
"\trotate=\"90\";\n";
}
@@ -188,12 +187,13 @@
}
static std::string getNodeAttributes(DSNode *N) {
- return "";//fontname=Courier";
+ return "shape=Mrecord";//fontname=Courier";
}
- //static int getEdgeSourceLabel(DSNode *Node, node_iterator I) {
- // return MergeMap[i];
- // }
+ static int getEdgeSourceLabel(DSNode *Node, DSNode::iterator I) {
+ assert(Node == I.getNode() && "Iterator not for this node!");
+ return Node->getMergeMapLabel(I.getLink());
+ }
};
@@ -205,7 +205,7 @@
if (F.good()) {
WriteGraph(F, this);
- print(F);
+ //print(F);
O << " [" << getGraphSize() << "+" << getFunctionCalls().size() << "]\n";
} else {
O << " error opening file for writing!\n";
More information about the llvm-commits
mailing list