summaryrefslogtreecommitdiff
path: root/gcc/cp/ptree.c
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2010-07-16 21:05:07 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2010-07-16 21:05:07 +0000
commitb183b7701acdf51a4dcd35e8987710f9abc435dc (patch)
treee0f2dc5aa4dd9a6339ce8d57fb5be8b2eda85bda /gcc/cp/ptree.c
parenta975d1ce508cb30e4a863fd3ccc48dd62559953d (diff)
downloadgcc-b183b7701acdf51a4dcd35e8987710f9abc435dc.tar.gz
* ptree.c (cxx_print_xnode): Handle TEMPLATE_INFO.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162268 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/ptree.c')
-rw-r--r--gcc/cp/ptree.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/cp/ptree.c b/gcc/cp/ptree.c
index c2493c7fcad..ee3f52faf23 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;
}