mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-01-18 14:21:36 +00:00
ir_instr_dump to print CALL+paramcountfor calls rather than CALL0 always
This commit is contained in:
parent
93d372f222
commit
c3cbda8b2b
1 changed files with 5 additions and 1 deletions
6
ir.c
6
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";
|
||||
|
|
Loading…
Reference in a new issue