add a method

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23575 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2005-10-01 00:17:07 +00:00
parent 22f6212e9f
commit 37345fe3cd
2 changed files with 11 additions and 0 deletions

View File

@ -52,6 +52,12 @@ struct DefaultDOTGraphTraits {
return ""; return "";
} }
/// hasNodeAddressLabel - If this method returns true, the address of the node
/// is added to the label of the node.
static bool hasNodeAddressLabel(const void *Node, const void *Graph) {
return false;
}
/// If you want to specify custom node attributes, this is the place to do so /// If you want to specify custom node attributes, this is the place to do so
/// ///
static std::string getNodeAttributes(const void *Node) { return ""; } static std::string getNodeAttributes(const void *Node) { return ""; }

View File

@ -34,6 +34,11 @@ namespace llvm {
return true; return true;
} }
static bool hasNodeAddressLabel(const SDNode *Node,
const SelectionDAG *Graph) {
return true;
}
static std::string getNodeLabel(const SDNode *Node, static std::string getNodeLabel(const SDNode *Node,
const SelectionDAG *Graph); const SelectionDAG *Graph);
static std::string getNodeAttributes(const SDNode *N) { static std::string getNodeAttributes(const SDNode *N) {