summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/include/Support/DOTGraphTraits.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/include/Support/DOTGraphTraits.h b/llvm/include/Support/DOTGraphTraits.h
index 28cf3651792..ca7c463f1c7 100644
--- a/llvm/include/Support/DOTGraphTraits.h
+++ b/llvm/include/Support/DOTGraphTraits.h
@@ -23,6 +23,14 @@ struct DefaultDOTGraphTraits {
///
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 ""; }
OpenPOWER on IntegriCloud