diff options
author | Eric Anholt <eric@anholt.net> | 2010-06-22 12:09:21 -0700 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2010-06-22 18:18:30 -0700 |
commit | e46a454305af64710ce8deadafc718f75363ac7e (patch) | |
tree | 7119b50e95dff28694865fb574270d2c42ac1634 /ir_dead_code_local.cpp | |
parent | 216580dbd733aa2e64df4ca95e37a0eb102c6ede (diff) |
ir: Give ir_instruction a print visitor helper.
This avoids spamming each file with includes of ir_print_visitor.h
because someone was doing debugging at some point, and is less typing
when doing debugging.
Diffstat (limited to 'ir_dead_code_local.cpp')
-rw-r--r-- | ir_dead_code_local.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ir_dead_code_local.cpp b/ir_dead_code_local.cpp index 344a6ebfbf..d3b3858617 100644 --- a/ir_dead_code_local.cpp +++ b/ir_dead_code_local.cpp @@ -34,7 +34,6 @@ */ #include "ir.h" -#include "ir_print_visitor.h" #include "ir_basic_block.h" #include "ir_optimization.h" #include "glsl_types.h" @@ -192,8 +191,7 @@ dead_code_local_basic_block(ir_instruction *first, ir_assignment *ir_assign = ir->as_assignment(); if (debug) { - ir_print_visitor v; - ir->accept(&v); + ir->print(); printf("\n"); } |