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.h | |
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.h')
-rw-r--r-- | ir.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -45,6 +45,10 @@ public: const struct glsl_type *type; class ir_constant *constant_expression_value(); + + /** ir_print_visitor helper for debugging. */ + void print(void); + virtual void accept(ir_visitor *) = 0; virtual ir_visitor_status accept(ir_hierarchical_visitor *) = 0; |