diff options
author | Nathan Sidwell <nathan@acm.org> | 2020-07-14 08:19:36 -0700 |
---|---|---|
committer | Nathan Sidwell <nathan@acm.org> | 2020-07-14 08:20:38 -0700 |
commit | 5f809982e8e05c39029431363e08759d6c750f0e (patch) | |
tree | a7f146120e3a26bbac587e7c9228c37313b8e861 /gcc/cp | |
parent | 4d4a0aa42322c84b472c299f4e33c0044650cc2e (diff) | |
download | gcc-5f809982e8e05c39029431363e08759d6c750f0e.zip gcc-5f809982e8e05c39029431363e08759d6c750f0e.tar.gz gcc-5f809982e8e05c39029431363e08759d6c750f0e.tar.bz2 |
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.
Diffstat (limited to 'gcc/cp')
-rw-r--r-- | gcc/cp/ptree.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/cp/ptree.c b/gcc/cp/ptree.c index 7d32904..224cf14 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; |