From c3cbda8b2b52cf51a63676d3063a5a41b1f09a2b Mon Sep 17 00:00:00 2001 From: "Wolfgang (Blub) Bumiller" Date: Sun, 12 Aug 2012 10:19:33 +0200 Subject: [PATCH] ir_instr_dump to print CALL+paramcountfor calls rather than CALL0 always --- ir.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ir.c b/ir.c index b3741b8..3efd973 100644 --- a/ir.c +++ b/ir.c @@ -2815,7 +2815,11 @@ void ir_instr_dump(ir_instr *in, char *ind, if (in->_ops[1] || in->_ops[2]) oprintf(" <- "); } - oprintf("%s\t", qc_opname(in->opcode)); + if (in->opcode == INSTR_CALL0) { + oprintf("CALL%i\t", in->params_count); + } else + oprintf("%s\t", qc_opname(in->opcode)); + if (in->_ops[0] && !(in->_ops[1] || in->_ops[2])) { ir_value_dump(in->_ops[0], oprintf); comma = ",\t"; -- 2.39.2