diff options
author | Chris Lattner <sabre@nondot.org> | 2002-10-10 22:29:10 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-10-10 22:29:10 +0000 |
commit | e9812838eeb8be19c460c952840f929b4eef3953 (patch) | |
tree | 2a8fc5d1f7e6ff4e6b21c5b040ffe33feb96aeb2 /include | |
parent | c582c66f630ddfcb2697291f22a857821334db9d (diff) | |
download | external_llvm-e9812838eeb8be19c460c952840f929b4eef3953.zip external_llvm-e9812838eeb8be19c460c952840f929b4eef3953.tar.gz external_llvm-e9812838eeb8be19c460c952840f929b4eef3953.tar.bz2 |
Add new getGraphProperties that may be specialized by graphs
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4108 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/Support/DOTGraphTraits.h | 8 | ||||
-rw-r--r-- | include/llvm/Support/DOTGraphTraits.h | 8 |
2 files changed, 16 insertions, 0 deletions
diff --git a/include/Support/DOTGraphTraits.h b/include/Support/DOTGraphTraits.h index 28cf365..ca7c463 100644 --- a/include/Support/DOTGraphTraits.h +++ b/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 ""; } diff --git a/include/llvm/Support/DOTGraphTraits.h b/include/llvm/Support/DOTGraphTraits.h index 28cf365..ca7c463 100644 --- a/include/llvm/Support/DOTGraphTraits.h +++ b/include/llvm/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 ""; } |