From fda6944c5bf99ff6d157b1590f3976bac9c5593d Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 1 Oct 2005 00:17:07 +0000 Subject: [PATCH] add a method llvm-svn: 23575 --- llvm/include/llvm/Support/DOTGraphTraits.h | 6 ++++++ llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/llvm/include/llvm/Support/DOTGraphTraits.h b/llvm/include/llvm/Support/DOTGraphTraits.h index 02a508790c52..9300ea7a8af0 100644 --- a/llvm/include/llvm/Support/DOTGraphTraits.h +++ b/llvm/include/llvm/Support/DOTGraphTraits.h @@ -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 /// diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp index d69004a557fa..2c2bc2144631 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp @@ -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);