tree-pretty-print.c (dump_generic_node): Fix printing of BINFO and TREE_VEC nodes.

2004-10-06  Daniel Berlin  <dberlin@dberlin.org>

	* tree-pretty-print.c (dump_generic_node): Fix printing of BINFO
	and TREE_VEC nodes.

From-SVN: r88624
This commit is contained in:
Daniel Berlin 2004-10-06 20:14:28 +00:00 committed by Daniel Berlin
parent 44301a5952
commit 55e9452ed5
2 changed files with 24 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2004-10-06 Daniel Berlin <dberlin@dberlin.org>
* tree-pretty-print.c (dump_generic_node): Fix printing of BINFO
and TREE_VEC nodes.
2004-10-06 Daniel Berlin <dberlin@dberlin.org>
* lambda-code.c (lambda_loopnest_to_gcc_loopnest): Convert

View file

@ -285,8 +285,26 @@ dump_generic_node (pretty_printer *buffer, tree node, int spc, int flags,
}
break;
case TREE_VEC:
case TREE_BINFO:
dump_generic_node (buffer, BINFO_TYPE (node), spc, flags, false);
case TREE_VEC:
{
size_t i;
if (TREE_VEC_LENGTH (node) > 0)
{
size_t len = TREE_VEC_LENGTH (node);
for (i = 0; i < len - 1; i++)
{
dump_generic_node (buffer, TREE_VEC_ELT (node, i), spc, flags,
false);
pp_character (buffer, ',');
pp_space (buffer);
}
dump_generic_node (buffer, TREE_VEC_ELT (node, len - 1), spc,
flags, false);
}
}
break;
case BLOCK: