From fe247bbe922ab862914bc76c10557157a06700ac Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Mon, 4 Apr 2016 12:10:20 -0700 Subject: [PATCH] nir: Stop double-printing function arguments --- src/compiler/nir/nir_print.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/compiler/nir/nir_print.c b/src/compiler/nir/nir_print.c index 60b74d13dc7..17ae3681e21 100644 --- a/src/compiler/nir/nir_print.c +++ b/src/compiler/nir/nir_print.c @@ -964,16 +964,6 @@ print_function_impl(nir_function_impl *impl, print_state *state) fprintf(fp, "{\n"); - for (unsigned i = 0; i < impl->num_params; i++) { - fprintf(fp, "\t"); - print_var_decl(impl->params[i], state); - } - - if (impl->return_var) { - fprintf(fp, "\t"); - print_var_decl(impl->return_var, state); - } - nir_foreach_variable(var, &impl->locals) { fprintf(fp, "\t"); print_var_decl(var, state); -- 2.30.2