summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ir_print_visitor.cpp18
1 files changed, 16 insertions, 2 deletions
diff --git a/ir_print_visitor.cpp b/ir_print_visitor.cpp
index 8c4271e466..365ff5933e 100644
--- a/ir_print_visitor.cpp
+++ b/ir_print_visitor.cpp
@@ -77,8 +77,22 @@ void ir_print_visitor::visit(ir_dereference *ir)
void ir_print_visitor::visit(ir_assignment *ir)
{
- printf("%s:%d:\n", __func__, __LINE__);
- (void) ir;
+ printf("(assign\n");
+
+ printf(" (");
+ if (ir->condition)
+ ir->condition->accept(this);
+ else
+ printf("true");
+ printf(")\n");
+
+ printf(" (");
+ ir->lhs->accept(this);
+ printf(")\n");
+
+ printf(" (");
+ ir->rhs->accept(this);
+ printf(")\n");
}