From: Nathan Sidwell Date: Tue, 14 Jul 2020 15:19:36 +0000 (-0700) Subject: c++: tree dumper X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5f809982e8e05c39029431363e08759d6c750f0e;p=gcc.git c++: tree dumper A couple of C++ nodes were unknown to the tree dumper. gcc/cp/ * ptree.c (cxx_print_type): Add TYPEOF_TYPE and BASES. --- diff --git a/gcc/cp/ptree.c b/gcc/cp/ptree.c index 7d329049549..224cf14edb5 100644 --- a/gcc/cp/ptree.c +++ b/gcc/cp/ptree.c @@ -106,6 +106,16 @@ cxx_print_type (FILE *file, tree node, int indent) indent + 4); return; + case TYPEOF_TYPE: + print_node (file, "expr", TYPEOF_TYPE_EXPR (node), indent + 4); + return; + + case BASES: + if (BASES_DIRECT (node)) + fputs (" direct", file); + print_node (file, "type", BASES_TYPE (node), indent + 4); + return; + case TYPE_PACK_EXPANSION: print_node (file, "args", PACK_EXPANSION_EXTRA_ARGS (node), indent + 4); return;