From 480ee1f0b46a916b91a9530d7384a58c8a87d779 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Mon, 9 Feb 2015 13:42:16 -0800 Subject: nir: Mark nir_print_instr's instr pointer as const. Printing instructions doesn't modify them, so we can mark the parameter const. Signed-off-by: Kenneth Graunke Reviewed-by: Jason Ekstrand --- src/glsl/nir/nir.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/glsl/nir/nir.h') diff --git a/src/glsl/nir/nir.h b/src/glsl/nir/nir.h index 4cb2e9274ca..ceda977e641 100644 --- a/src/glsl/nir/nir.h +++ b/src/glsl/nir/nir.h @@ -1489,7 +1489,7 @@ void nir_index_ssa_defs(nir_function_impl *impl); void nir_index_blocks(nir_function_impl *impl); void nir_print_shader(nir_shader *shader, FILE *fp); -void nir_print_instr(nir_instr *instr, FILE *fp); +void nir_print_instr(const nir_instr *instr, FILE *fp); #ifdef DEBUG void nir_validate_shader(nir_shader *shader); -- cgit v1.2.3