diff options
author | Eric Anholt <[email protected]> | 2010-06-24 09:07:38 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2010-06-24 13:32:35 -0700 |
commit | ebefeb2bdd9b440f4b515986667e2bfb3147fe35 (patch) | |
tree | 441744cee2d55c4b1af6c22e6cf646ddf78e2b88 | |
parent | 9ca0a022e6fcd46a6ce06b8d08dd4c046ec215c4 (diff) |
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.
-rw-r--r-- | ir_print_visitor.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ir_print_visitor.cpp b/ir_print_visitor.cpp index f15ffb66141..be5a843f67d 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); } |