diff options
author | Jason Merrill <jason@redhat.com> | 2011-04-27 01:17:10 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2011-04-27 01:17:10 -0400 |
commit | a0dc5e4ac9d0263c8c2d2d3f4029212833a26f6a (patch) | |
tree | 2bee403cdc9052edf9d947b9629d1320bb6a8012 /gcc/cp/ptree.c | |
parent | 36a9902dcdf8e5c723cb09cf05ec0231f5cf8aef (diff) | |
download | gcc-a0dc5e4ac9d0263c8c2d2d3f4029212833a26f6a.zip gcc-a0dc5e4ac9d0263c8c2d2d3f4029212833a26f6a.tar.gz gcc-a0dc5e4ac9d0263c8c2d2d3f4029212833a26f6a.tar.bz2 |
ptree.c (cxx_print_type): Dump fullname.
* ptree.c (cxx_print_type) [TYPENAME_TYPE]: Dump fullname.
(cxx_print_identifier): Correct indentation.
From-SVN: r173006
Diffstat (limited to 'gcc/cp/ptree.c')
-rw-r--r-- | gcc/cp/ptree.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gcc/cp/ptree.c b/gcc/cp/ptree.c index 49dc82b..a4c3ed5 100644 --- a/gcc/cp/ptree.c +++ b/gcc/cp/ptree.c @@ -99,6 +99,11 @@ cxx_print_type (FILE *file, tree node, int indent) print_node (file, "expr", DECLTYPE_TYPE_EXPR (node), indent + 4); return; + case TYPENAME_TYPE: + print_node (file, "fullname", TYPENAME_TYPE_FULLNAME (node), + indent + 4); + return; + default: return; } @@ -175,12 +180,12 @@ cxx_print_identifier (FILE *file, tree node, int indent) if (indent == 0) fprintf (file, " "); else - indent_to (file, indent); + indent_to (file, indent + 4); cxx_print_binding (file, IDENTIFIER_NAMESPACE_BINDINGS (node), "bindings"); if (indent == 0) fprintf (file, " "); else - indent_to (file, indent); + indent_to (file, indent + 4); cxx_print_binding (file, IDENTIFIER_BINDING (node), "local bindings"); print_node (file, "label", IDENTIFIER_LABEL_VALUE (node), indent + 4); print_node (file, "template", IDENTIFIER_TEMPLATE (node), indent + 4); |