From fa08e4afb766fee9477ce7d62f0ce4c59f659dd6 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sun, 19 Dec 2010 11:16:04 +0900 Subject: [PATCH] Print users info when dumping statements. --- tools/qfcc/source/emit.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/qfcc/source/emit.c b/tools/qfcc/source/emit.c index 94223e7e7..91c6e87c8 100644 --- a/tools/qfcc/source/emit.c +++ b/tools/qfcc/source/emit.c @@ -160,10 +160,10 @@ emit_statement (expr_t *e, opcode_t *op, def_t *var_a, def_t *var_b, ret = var_c; } #if 0 - printf ("%s %s(%d) %s(%d) %s(%d)\n", op->opname, - var_a ? var_a->name : "", statement->a, - var_b ? var_b->name : "", statement->b, - var_c ? var_c->name : "", statement->c); + printf ("%s %s(%d:%d) %s(%d:%d) %s(%d:%d)\n", op->opname, + var_a ? var_a->name : "", var_a ? var_a->users : 99, statement->a, + var_b ? var_b->name : "", var_b ? var_b->users : 99, statement->b, + var_c ? var_c->name : "", var_c ? var_c->users : 99, statement->c); #endif add_statement_ref (var_a, statement, 0);