add a method
authorChris Lattner <sabre@nondot.org>
Sat, 1 Oct 2005 00:17:07 +0000 (00:17 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 1 Oct 2005 00:17:07 +0000 (00:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23575 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/DOTGraphTraits.h
lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp

index 02a508790c52c5f90fd97037e7bd88e4f81d0c17..9300ea7a8af0710b6a98acb1d4f449cb32174356 100644 (file)
@@ -51,6 +51,12 @@ struct DefaultDOTGraphTraits {
   static std::string getNodeLabel(const void *Node, const void *Graph) {
     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
   ///
index d69004a557fa62cbad4992ecef8db9ba714ee2e3..2c2bc21446311fa81e7fff44fa11f7dd7c587386 100644 (file)
@@ -33,6 +33,11 @@ namespace llvm {
     static bool renderGraphFromBottomUp() {
       return true;
     }
+    
+    static bool hasNodeAddressLabel(const SDNode *Node,
+                                    const SelectionDAG *Graph) {
+      return true;
+    }
 
     static std::string getNodeLabel(const SDNode *Node,
                                     const SelectionDAG *Graph);