glsl: Make _mesa_print_ir() available from anything including ir.h. 76/7076/1
authorEric Anholt <eric@anholt.net>
Wed, 12 Jun 2013 23:10:33 +0000 (16:10 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 21 Jun 2013 17:04:29 +0000 (10:04 -0700)
commit2b049aa53e12accf2c5be88d1d9b66dbcab47bfb
treea2037519d6f2dac013c53460d894d8a39cddd012
parentd0abac22c3d963a0f02a41c7527fbb18071ea7c4
glsl: Make _mesa_print_ir() available from anything including ir.h.

No more forgetting to #include "ir_print_visitor.h" when doing temporary
debug code, or forgetting and leaving it in after removing your temporary
debug code.  Also, available from C code so you don't need to move the
caller to C++ just to call it (see also: ir_to_mesa.cpp).

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/glsl/ir.h
src/glsl/ir_print_visitor.cpp
src/glsl/ir_print_visitor.h