diff options
author | dberlin <dberlin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-10-06 20:14:28 +0000 |
---|---|---|
committer | dberlin <dberlin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-10-06 20:14:28 +0000 |
commit | dce3d0649a17884475b70aab8cbc7b13dc4f70db (patch) | |
tree | bb35efa95eac118c385050ab7c5f9381ee87cb7e /gcc/tree-pretty-print.c | |
parent | 6ee8fda78f2e4ad7f0fefb3be95f8271f0927873 (diff) | |
download | gcc-dce3d0649a17884475b70aab8cbc7b13dc4f70db.tar.gz |
2004-10-06 Daniel Berlin <dberlin@dberlin.org>
* tree-pretty-print.c (dump_generic_node): Fix printing of BINFO
and TREE_VEC nodes.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@88624 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-pretty-print.c')
-rw-r--r-- | gcc/tree-pretty-print.c | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/gcc/tree-pretty-print.c b/gcc/tree-pretty-print.c index 9337c3856fd..12ba54a525e 100644 --- a/gcc/tree-pretty-print.c +++ b/gcc/tree-pretty-print.c @@ -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: |