diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-07-15 00:38:43 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-07-15 00:38:43 +0000 |
commit | c11ba43cc945eb28717262bd13af00a4c978957f (patch) | |
tree | 508a90583c93e2b65a5b2b9806e9059ee67069b2 /gcc/print-tree.c | |
parent | d529383ecd8208de3bc5df588a8615931312780b (diff) | |
download | gcc-c11ba43cc945eb28717262bd13af00a4c978957f.tar.gz |
* print-tree.c (print_node): Handle SSA_NAME.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84729 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/print-tree.c')
-rw-r--r-- | gcc/print-tree.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/gcc/print-tree.c b/gcc/print-tree.c index 01e57026153..482f67c1bc4 100644 --- a/gcc/print-tree.c +++ b/gcc/print-tree.c @@ -731,6 +731,32 @@ print_node (FILE *file, const char *prefix, tree node, int indent) BLOCK_ABSTRACT_ORIGIN (node), indent + 4); break; + case SSA_NAME: + print_node_brief (file, "var", SSA_NAME_VAR (node), indent + 4); + print_node_brief (file, "def_stmt", + SSA_NAME_DEF_STMT (node), indent + 4); + + indent_to (file, indent + 4); + fprintf (file, "version %u", SSA_NAME_VERSION (node)); + if (SSA_NAME_OCCURS_IN_ABNORMAL_PHI (node)) + fprintf (file, " in-abnormal-phi"); + if (SSA_NAME_IN_FREE_LIST (node)) + fprintf (file, " in-free-list"); + + if (SSA_NAME_PTR_INFO (node) + || SSA_NAME_VALUE (node) + || SSA_NAME_AUX (node)) + { + indent_to (file, indent + 3); + if (SSA_NAME_PTR_INFO (node)) + fprintf (file, " ptr-info %p", SSA_NAME_PTR_INFO (node)); + if (SSA_NAME_VALUE (node)) + fprintf (file, " value %p", SSA_NAME_VALUE (node)); + if (SSA_NAME_AUX (node)) + fprintf (file, " aux %p", SSA_NAME_AUX (node)); + } + break; + default: if (TREE_CODE_CLASS (TREE_CODE (node)) == 'x') lang_hooks.print_xnode (file, node, indent); |