* print-tree.c (print_node): Handle TREE_BINFO.
authorJason Merrill <jason@redhat.com>
Tue, 18 Aug 2015 21:29:12 +0000 (17:29 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 18 Aug 2015 21:29:12 +0000 (17:29 -0400)
From-SVN: r226994

gcc/ChangeLog
gcc/print-tree.c

index f210fd685432c06f8591063bcf4c71d23386a5b4..d279b39909c992c533802e2c90a06def241adf76 100644 (file)
@@ -1,3 +1,7 @@
+2015-08-18  Jason Merrill  <jason@redhat.com>
+
+       * print-tree.c (print_node): Handle TREE_BINFO.
+
 2015-08-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
 
        PR middle-end/36757
index 6e0d4a9f02ce8de301ed22856ae97037e08093dd..ea50056e58c38d3a06707e5c8da30365f86637a3 100644 (file)
@@ -911,6 +911,17 @@ print_node (FILE *file, const char *prefix, tree node, int indent)
                            indent + 4);
          break;
 
+       case TREE_BINFO:
+         fprintf (file, " bases %d",
+                  vec_safe_length (BINFO_BASE_BINFOS (node)));
+         print_node_brief (file, "offset", BINFO_OFFSET (node), indent + 4);
+         print_node_brief (file, "virtuals", BINFO_VIRTUALS (node),
+                           indent + 4);
+         print_node_brief (file, "inheritance chain",
+                           BINFO_INHERITANCE_CHAIN (node),
+                           indent + 4);
+         break;
+
        default:
          if (EXCEPTIONAL_CLASS_P (node))
            lang_hooks.print_xnode (file, node, indent);