]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
ir_instr_dump to print CALL+paramcountfor calls rather than CALL0 always
authorWolfgang (Blub) Bumiller <blub@speed.at>
Sun, 12 Aug 2012 08:19:33 +0000 (10:19 +0200)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Sun, 12 Aug 2012 08:19:33 +0000 (10:19 +0200)
ir.c

diff --git a/ir.c b/ir.c
index b3741b8467486900dbb4e4a4b23b6b3f2aa4db45..3efd973025583f250962dd7dfbd35543451dc70f 100644 (file)
--- 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";