Add new getGraphProperties that may be specialized by graphs

llvm-svn: 4108
This commit is contained in:
Chris Lattner 2002-10-10 22:29:10 +00:00
parent 513401821c
commit f43f410dfb
1 changed files with 8 additions and 0 deletions

View File

@ -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 ""; }