IR print visitor: Move logic for printing the whole program to _mesa_print_ir

This commit is contained in:
Ian Romanick
2010-04-28 13:04:15 -07:00
parent 7d82c765a8
commit 36d8a64a95
3 changed files with 20 additions and 8 deletions
+1 -8
View File
@@ -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;