ir_print_visitor: Print (constant bool (1)) instead of "true"
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 12 Apr 2010 22:46:10 +0000 (15:46 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 28 Apr 2010 22:34:52 +0000 (15:34 -0700)
It might be better to simply handle "true" in the reader, but since
booleans normally aren't printed as "true" or "false", we may as well go
for consistency.

ir_print_visitor.cpp

index faeb784e922a4ccec105ece4250f418677c5dbfe..ec20e0c0eddbc51b9cc87e5540b6e5ee2a92084d 100644 (file)
@@ -218,7 +218,7 @@ void ir_print_visitor::visit(ir_assignment *ir)
    if (ir->condition)
       ir->condition->accept(this);
    else
-      printf("true");
+      printf("(constant bool (1))");
 
    printf(" ");