IR print visitor: print function calls

This commit is contained in:
Ian Romanick
2010-03-26 17:30:30 -07:00
parent 93614bc4b9
commit 5508129fd8
+5 -3
View File
@@ -197,10 +197,12 @@ void ir_print_visitor::visit(ir_constant *ir)
void
ir_print_visitor::visit(ir_call *ir)
{
(void) ir;
printf("(call (%s) ", ir->callee_name());
foreach_iter(exec_list_iterator, iter, *ir) {
ir_instruction *const inst = (ir_instruction *) iter.get();
printf("(call FINISHME: function name here\n");
printf(" (FINISHME: function paramaters here))\n");
inst->accept(this);
}
}