From 36d8a64a95354d09685e65c5e721038ff81b6d1f Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Wed, 28 Apr 2010 13:04:15 -0700 Subject: IR print visitor: Move logic for printing the whole program to _mesa_print_ir --- glsl_parser_extras.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'glsl_parser_extras.cpp') diff --git a/glsl_parser_extras.cpp b/glsl_parser_extras.cpp index efcb125dfc5..4255d2d66e7 100644 --- a/glsl_parser_extras.cpp +++ b/glsl_parser_extras.cpp @@ -789,14 +789,7 @@ main(int argc, char **argv) printf("\n\n"); if (!state.error) { - printf("(\n"); - foreach_iter(exec_list_iterator, iter, instructions) { - ir_print_visitor v; - - ((ir_instruction *)iter.get())->accept(& v); - printf("\n"); - } - printf("\n)"); + _mesa_print_ir(&instructions, &state); } delete state.symbols; -- cgit v1.2.3