From: Eric Anholt Date: Thu, 24 Jun 2010 16:07:38 +0000 (-0700) Subject: Attach a pointer to variable names in LIR dumping. X-Git-Tag: 062012170305~10660^2~625^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ebefeb2bdd9b440f4b515986667e2bfb3147fe35;p=profile%2Fivi%2Fmesa.git Attach a pointer to variable names in LIR dumping. Since variable names are not unique, and we like to make lots of __retvals and assignment_tmps and a,b,c,d this helps in debugging. --- diff --git a/ir_print_visitor.cpp b/ir_print_visitor.cpp index f15ffb6..be5a843 100644 --- a/ir_print_visitor.cpp +++ b/ir_print_visitor.cpp @@ -92,7 +92,7 @@ void ir_print_visitor::visit(ir_variable *ir) cent, inv, mode[ir->mode], interp[ir->interpolation]); print_type(ir->type); - printf(" %s)", ir->name); + printf(" %s@%p)", ir->name, ir); } @@ -220,7 +220,8 @@ void ir_print_visitor::visit(ir_swizzle *ir) void ir_print_visitor::visit(ir_dereference_variable *ir) { - printf("(var_ref %s) ", ir->variable_referenced()->name); + ir_variable *var = ir->variable_referenced(); + printf("(var_ref %s@%p) ", var->name, var); }