diff options
author | Ian Romanick <ian.d.romanick@intel.com> | 2010-03-25 17:04:26 -0700 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2010-03-25 18:39:59 -0700 |
commit | 6e7c278e243e506dd10cc7e0ca5768c187c33b27 (patch) | |
tree | d875598fb3cb318257d860e614e0d3ae56ff082b /ir_print_visitor.cpp | |
parent | a4e92c4b26578614d76ce71b53194ea5c0f58d6c (diff) |
IR print visitor: Less newlines when printing ir_variables
Diffstat (limited to 'ir_print_visitor.cpp')
-rw-r--r-- | ir_print_visitor.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/ir_print_visitor.cpp b/ir_print_visitor.cpp index f9f3d3f17d..8fe35bfa6e 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); } |