* ptree.c (debug_tree): Implement for cp_expr.
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 10 Feb 2016 15:34:45 +0000 (15:34 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 10 Feb 2016 15:34:45 +0000 (15:34 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233276 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/cp/ChangeLog
gcc/cp/ptree.c

index 8ed7828..a117b47 100644 (file)
@@ -1,3 +1,7 @@
+2016-02-10  Jason Merrill  <jason@redhat.com>
+
+       * ptree.c (debug_tree): Implement for cp_expr.
+
 2016-02-08  Patrick Palka  <ppalka@gcc.gnu.org>
 
        PR c++/69139
index 2c8ff99..8266e83 100644 (file)
@@ -287,3 +287,11 @@ cxx_print_xnode (FILE *file, tree node, int indent)
       break;
     }
 }
+
+/* Print the node NODE on standard error, for debugging.  */
+
+DEBUG_FUNCTION void
+debug_tree (cp_expr node)
+{
+  debug_tree (node.get_value());
+}