X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;ds=sidebyside;f=ir.c;h=3ead45edb10093a551bd10184d3d045899dec0b1;hb=028543db8cc8c0cfc3684805d48488fc3719e7a6;hp=b3741b8467486900dbb4e4a4b23b6b3f2aa4db45;hpb=93d372f222932058bd9c0e6402e099696a5f58b1;p=xonotic%2Fgmqcc.git diff --git a/ir.c b/ir.c index b3741b8..3ead45e 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"; @@ -2847,6 +2851,7 @@ void ir_value_dump(ir_value* v, int (*oprintf)(const char*, ...)) { if (v->isconst) { switch (v->vtype) { + default: case TYPE_VOID: oprintf("(void)"); break;