diff options
author | Jason Merrill <jason@redhat.com> | 2016-12-21 14:11:41 -0500 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2016-12-21 14:11:41 -0500 |
commit | 0856b5d78d26690b2411053967aee57f37486d11 (patch) | |
tree | 48cb860420a4f00b987a3dac4b584e8aa2c324bf /gcc/cp/ptree.c | |
parent | 0bcd172dbf4f3d9168d4436e5f34730b8987762a (diff) | |
download | gcc-0856b5d78d26690b2411053967aee57f37486d11.zip gcc-0856b5d78d26690b2411053967aee57f37486d11.tar.gz gcc-0856b5d78d26690b2411053967aee57f37486d11.tar.bz2 |
Improve C++ debug_tree.
* ptree.c (cxx_print_type): Print args of
BOUND_TEMPLATE_TEMPLATE_PARM.
(cxx_print_decl): Print DECL_TEMPLATE_PARMS.
From-SVN: r243865
Diffstat (limited to 'gcc/cp/ptree.c')
-rw-r--r-- | gcc/cp/ptree.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/cp/ptree.c b/gcc/cp/ptree.c index e3e5e33..67a4ee8 100644 --- a/gcc/cp/ptree.c +++ b/gcc/cp/ptree.c @@ -50,6 +50,7 @@ cxx_print_decl (FILE *file, tree node, int indent) } else if (TREE_CODE (node) == TEMPLATE_DECL) { + print_node (file, "parms", DECL_TEMPLATE_PARMS (node), indent + 4); indent_to (file, indent + 3); fprintf (file, " full-name \"%s\"", decl_as_string (node, TFF_TEMPLATE_HEADER)); @@ -73,9 +74,12 @@ cxx_print_type (FILE *file, tree node, int indent) { switch (TREE_CODE (node)) { + case BOUND_TEMPLATE_TEMPLATE_PARM: + print_node (file, "args", TYPE_TI_ARGS (node), indent + 4); + gcc_fallthrough (); + case TEMPLATE_TYPE_PARM: case TEMPLATE_TEMPLATE_PARM: - case BOUND_TEMPLATE_TEMPLATE_PARM: indent_to (file, indent + 3); fprintf (file, "index %d level %d orig_level %d", TEMPLATE_TYPE_IDX (node), TEMPLATE_TYPE_LEVEL (node), |