ir_print_visitor: Re-parenthesize ir_call output.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 22 Apr 2010 07:44:12 +0000 (00:44 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 28 Apr 2010 22:34:52 +0000 (15:34 -0700)
ir_print_visitor.cpp

index 6a340a2..56048fe 100644 (file)
@@ -260,13 +260,13 @@ void ir_print_visitor::visit(ir_constant *ir)
 void
 ir_print_visitor::visit(ir_call *ir)
 {
-   printf("(call (%s) ", ir->callee_name());
+   printf("(call %s (", ir->callee_name());
    foreach_iter(exec_list_iterator, iter, *ir) {
       ir_instruction *const inst = (ir_instruction *) iter.get();
 
       inst->accept(this);
    }
-   printf(")\n");
+   printf("))\n");
 }