Add a version of dumpr() that has a SelectionDAG* argument.
authorDan Gohman <gohman@apple.com>
Fri, 25 Sep 2009 00:34:34 +0000 (00:34 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 25 Sep 2009 00:34:34 +0000 (00:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82742 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/SelectionDAGNodes.h
lib/CodeGen/SelectionDAG/SelectionDAG.cpp

index 04e1b853fe7c714db17a128243e2f8e6185b286d..9a16903a655385a0f4d898eb8bdd3b673a212d56 100644 (file)
@@ -1295,6 +1295,7 @@ public:
   void dump() const;
   void dumpr() const;
   void dump(const SelectionDAG *G) const;
+  void dumpr(const SelectionDAG *G) const;
 
   static bool classof(const SDNode *) { return true; }
 
index 0aa0314643bc8c61ce4c1744561f96455defe84c..9925cf77a81a44eb0f4b44cb587efb35c7bc0568 100644 (file)
@@ -5726,6 +5726,11 @@ void SDNode::dumpr() const {
   DumpNodesr(errs(), this, 0, 0, once);
 }
 
+void SDNode::dumpr(const SelectionDAG *G) const {
+  VisitedSDNodeSet once;
+  DumpNodesr(errs(), this, 0, G, once);
+}
+
 
 // getAddressSpace - Return the address space this GlobalAddress belongs to.
 unsigned GlobalAddressSDNode::getAddressSpace() const {