mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-12-25 03:55:32 +08:00
c++: improve tree dump for templated decls
gcc/cp/ChangeLog: * ptree.c (cxx_print_decl): Dump the DECL_TEMPLATE_RESULT of a TEMPLATE_DECL. Dump the DECL_TEMPLATE_INFO rather than just printing its pointer value.
This commit is contained in:
parent
96783caedc
commit
f6a05b23cc
@ -51,6 +51,7 @@ cxx_print_decl (FILE *file, tree node, int indent)
|
||||
}
|
||||
else if (TREE_CODE (node) == TEMPLATE_DECL)
|
||||
{
|
||||
print_node (file, "result", DECL_TEMPLATE_RESULT (node), indent + 4);
|
||||
print_node (file, "parms", DECL_TEMPLATE_PARMS (node), indent + 4);
|
||||
indent_to (file, indent + 3);
|
||||
fprintf (file, " full-name \"%s\"",
|
||||
@ -115,13 +116,8 @@ cxx_print_decl (FILE *file, tree node, int indent)
|
||||
|
||||
if (VAR_OR_FUNCTION_DECL_P (node)
|
||||
&& DECL_TEMPLATE_INFO (node))
|
||||
{
|
||||
if (need_indent)
|
||||
indent_to (file, indent + 3);
|
||||
fprintf (file, " template-info %p",
|
||||
(void *) DECL_TEMPLATE_INFO (node));
|
||||
need_indent = false;
|
||||
}
|
||||
print_node (file, "template-info", DECL_TEMPLATE_INFO (node),
|
||||
indent + 4);
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user