Commit 3629f741 by Jim Wilson

(print_node): Don't print blank line for null fields in a TREE_VEC.

From-SVN: r2133
parent 7dcdbecb
...@@ -601,12 +601,13 @@ print_node (file, prefix, node, indent) ...@@ -601,12 +601,13 @@ print_node (file, prefix, node, indent)
case TREE_VEC: case TREE_VEC:
len = TREE_VEC_LENGTH (node); len = TREE_VEC_LENGTH (node);
for (i = 0; i < len; i++) for (i = 0; i < len; i++)
{ if (TREE_VEC_ELT (node, i))
char temp[10]; {
sprintf (temp, "elt %d", i); char temp[10];
indent_to (file, indent + 4); sprintf (temp, "elt %d", i);
print_node_brief (file, temp, TREE_VEC_ELT (node, i), 0); indent_to (file, indent + 4);
} print_node_brief (file, temp, TREE_VEC_ELT (node, i), 0);
}
break; break;
case OP_IDENTIFIER: case OP_IDENTIFIER:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment