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 6a340a25d497f7c2ce73b62c91abc78f298ee98b..56048fe40f208b6fd73bbf67e6f23fa90a937dd9 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");
 }