summaryrefslogtreecommitdiffstats
path: root/glsl_parser_extras.cpp
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2010-04-28 13:04:15 -0700
committerIan Romanick <[email protected]>2010-04-28 18:22:54 -0700
commit36d8a64a95354d09685e65c5e721038ff81b6d1f (patch)
tree5185fd20ac85a5d93b578d93448f13ab8cf0f0e8 /glsl_parser_extras.cpp
parent7d82c765a8ac7bdbad4cb445b1d2fd216a6e744d (diff)
IR print visitor: Move logic for printing the whole program to _mesa_print_ir
Diffstat (limited to 'glsl_parser_extras.cpp')
-rw-r--r--glsl_parser_extras.cpp9
1 files changed, 1 insertions, 8 deletions
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;