* C++ PATCH to improve print_tree for TEMPLATE_INFO nodes
@ 2010-07-16 20:52 Jason Merrill
0 siblings, 0 replies; only message in thread
From: Jason Merrill @ 2010-07-16 20:52 UTC (permalink / raw)
To: gcc-patches List
[-- Attachment #1: Type: text/plain, Size: 136 bytes --]
I noticed we weren't doing this, and the default behavior didn't print
the TREE_CHAIN.
Tested x86_64-pc-linux-gnu, applying to trunk.
[-- Attachment #2: ptree-template-info.patch --]
[-- Type: text/x-patch, Size: 824 bytes --]
commit 8a9510b8fe8fb127ed2f8e3f50e5a97d0a9c92ec
Author: Jason Merrill <jason@redhat.com>
Date: Fri Jul 16 12:19:08 2010 -0400
* ptree.c (cxx_print_xnode): Handle TEMPLATE_INFO.
diff --git a/gcc/cp/ptree.c b/gcc/cp/ptree.c
index c2493c7..ee3f52f 100644
--- a/gcc/cp/ptree.c
+++ b/gcc/cp/ptree.c
@@ -207,6 +207,15 @@ cxx_print_xnode (FILE *file, tree node, int indent)
TEMPLATE_PARM_IDX (node), TEMPLATE_PARM_LEVEL (node),
TEMPLATE_PARM_ORIG_LEVEL (node));
break;
+ case TEMPLATE_INFO:
+ print_node (file, "template", TI_TEMPLATE (node), indent+4);
+ print_node (file, "args", TI_ARGS (node), indent+4);
+ if (TI_PENDING_TEMPLATE_FLAG (node))
+ {
+ indent_to (file, indent + 3);
+ fprintf (file, "pending_template");
+ }
+ break;
default:
break;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-07-16 20:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-16 20:52 C++ PATCH to improve print_tree for TEMPLATE_INFO nodes Jason Merrill
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).