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.
This commit is contained in:
parent
4d4a0aa423
commit
5f809982e8
1 changed files with 10 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue