* ptree.c (debug_tree): Implement for cp_expr.
authorJason Merrill <jason@redhat.com>
Wed, 10 Feb 2016 15:34:45 +0000 (10:34 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 10 Feb 2016 15:34:45 +0000 (10:34 -0500)
From-SVN: r233276

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

index 8ed7828c10f51f33b023185cd6bda93e60034037..a117b47ae10a3ae752bd482379c0eb29fec0b873 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 2c8ff992e898aeeed14ccfec35e5828312f5c63e..8266e832a4c616b41fca3de8658c1af8482deca6 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());
+}