gimple-pretty-print.c (dump_gimple_call_args): Simplify "' " printing.

* gimple-pretty-print.c (dump_gimple_call_args): Simplify "' "
	printing.

From-SVN: r240570
This commit is contained in:
Nathan Sidwell 2016-09-28 11:26:16 +00:00 committed by Nathan Sidwell
parent a29b7214dd
commit bc43e0ec4b
2 changed files with 9 additions and 9 deletions

View File

@ -1,3 +1,8 @@
2016-09-28 Nathan Sidwell <nathan@acm.org>
* gimple-pretty-print.c (dump_gimple_call_args): Simplify "' "
printing.
2016-09-28 Wilco Dijkstra <wdijkstr@arm.com> 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
PR tree-optimization/61056 PR tree-optimization/61056

View File

@ -649,26 +649,21 @@ dump_gimple_call_args (pretty_printer *buffer, gcall *gs, int flags)
{ {
i++; i++;
pp_string (buffer, enums[v]); pp_string (buffer, enums[v]);
if (i < gimple_call_num_args (gs))
pp_string (buffer, ", ");
} }
} }
} }
for (; i < gimple_call_num_args (gs); i++) for (; i < gimple_call_num_args (gs); i++)
{ {
dump_generic_node (buffer, gimple_call_arg (gs, i), 0, flags, false); if (i)
if (i < gimple_call_num_args (gs) - 1)
pp_string (buffer, ", "); pp_string (buffer, ", ");
dump_generic_node (buffer, gimple_call_arg (gs, i), 0, flags, false);
} }
if (gimple_call_va_arg_pack_p (gs)) if (gimple_call_va_arg_pack_p (gs))
{ {
if (gimple_call_num_args (gs) > 0) if (i)
{ pp_string (buffer, ", ");
pp_comma (buffer);
pp_space (buffer);
}
pp_string (buffer, "__builtin_va_arg_pack ()"); pp_string (buffer, "__builtin_va_arg_pack ()");
} }