nir: Mark nir_print_instr's instr pointer as const.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 9 Feb 2015 21:42:16 +0000 (13:42 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 10 Feb 2015 11:37:55 +0000 (03:37 -0800)
commit480ee1f0b46a916b91a9530d7384a58c8a87d779
tree838bf46ec2569baf9ba80ccd61bcdc2cc2ad0113
parent08a06b6b891df456902f5e170f1d82236d0c73d2
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 <kenneth@whitecape.org>
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/glsl/nir/nir.h
src/glsl/nir/nir_print.c