Add parens around printed IR so it's an official list of instructions.
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 10 Apr 2010 00:28:47 +0000 (17:28 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 28 Apr 2010 22:34:52 +0000 (15:34 -0700)
glsl_parser_extras.cpp

index c808052ee78c45eb28282997fbf5c82c8cf53aa4..121104f9386bf5b65ba27cb20899298bba67583a 100644 (file)
@@ -776,12 +776,14 @@ 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)");
    }
 
    delete state.symbols;