[llvm-commits] CVS: llvm/include/Support/DOTGraphTraits.h

Chris Lattner lattner at cs.uiuc.edu
Thu Oct 10 17:30:01 PDT 2002


Changes in directory llvm/include/Support:

DOTGraphTraits.h updated: 1.1 -> 1.2

---
Log message:

Add new getGraphProperties that may be specialized by graphs


---
Diffs of the changes:

Index: llvm/include/Support/DOTGraphTraits.h
diff -u llvm/include/Support/DOTGraphTraits.h:1.1 llvm/include/Support/DOTGraphTraits.h:1.2
--- llvm/include/Support/DOTGraphTraits.h:1.1	Mon Oct  7 13:37:10 2002
+++ llvm/include/Support/DOTGraphTraits.h	Thu Oct 10 17:29:10 2002
@@ -23,6 +23,14 @@
   ///
   static std::string getGraphName(void *Graph) { return ""; }
 
+  /// getGraphProperties - Return any custom properties that should be included
+  /// in the top level graph structure for dot.  By default, we resize the graph
+  /// to fit on a letter size page.
+  ///
+  static std::string getGraphProperties(void *Graph) {
+    return "\tsize=\"7.5,10\";\n";    // Size to fit on a page
+  }
+
   /// getNodeLabel - Given a node and a pointer to the top level graph, return
   /// the label to print in the node.
   static std::string getNodeLabel(void *Node, void *Graph) { return ""; }





More information about the llvm-commits mailing list