From: Ian Romanick Date: Fri, 26 Mar 2010 00:04:26 +0000 (-0700) Subject: IR print visitor: Less newlines when printing ir_variables X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6e7c278e243e506dd10cc7e0ca5768c187c33b27;p=mesa.git IR print visitor: Less newlines when printing ir_variables --- diff --git a/ir_print_visitor.cpp b/ir_print_visitor.cpp index f9f3d3f17d8..8fe35bfa6e9 100644 --- a/ir_print_visitor.cpp +++ b/ir_print_visitor.cpp @@ -47,22 +47,21 @@ print_type(const glsl_type *t) void ir_print_visitor::visit(ir_variable *ir) { - printf("(declare \n"); + printf("(declare "); const char *const cent = (ir->centroid) ? "centroid " : ""; const char *const inv = (ir->invariant) ? "invariant " : ""; const char *const mode[] = { "", "uniform ", "in ", "out ", "inout " }; const char *const interp[] = { "", "flat", "noperspective" }; - printf(" (%s%s%s%s)\n", + printf("(%s%s%s%s) ", cent, inv, mode[ir->mode], interp[ir->interpolation]); - printf(" ("); + printf("("); print_type(ir->type); - printf(")\n"); + printf(") "); - printf(" (%s)\n", ir->name); - printf(")\n"); + printf("(%s))\n", ir->name); }