ir_print_visitor: Remove unnecessary parenthesis around variable names.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 9 Apr 2010 23:34:21 +0000 (16:34 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 28 Apr 2010 22:34:52 +0000 (15:34 -0700)
ir_print_visitor.cpp

index 6eb9a1d..75fc109 100644 (file)
@@ -44,7 +44,7 @@ print_type(const glsl_type *t)
 void ir_print_visitor::visit(ir_variable *ir)
 {
    if (deref_depth) {
-      printf("(%s)", ir->name);
+      printf("%s", ir->name);
    } else {
       printf("(declare ");
 
@@ -57,7 +57,7 @@ void ir_print_visitor::visit(ir_variable *ir)
             cent, inv, mode[ir->mode], interp[ir->interpolation]);
 
       print_type(ir->type);
-      printf("(%s)) ", ir->name);
+      printf(" %s)", ir->name);
    }
 }