glsl: Make is_lvalue() and variable_referenced() const.
authorPaul Berry <stereotype441@gmail.com>
Tue, 2 Aug 2011 22:22:25 +0000 (15:22 -0700)
committerPaul Berry <stereotype441@gmail.com>
Tue, 16 Aug 2011 00:23:02 +0000 (17:23 -0700)
commita52b53b56e2b5d5853345d8bcd2a4ff50e495c20
treef2c07e702b2f0a7ce2fad0830fecdc699bf5c5b8
parent67b5a3267d639c31d3ac4073be877ffb0f5637d3
glsl: Make is_lvalue() and variable_referenced() const.

These functions don't modify the target instruction, so it makes sense
to make them const.  This allows these functions to be called from ir
validation code (which uses const to ensure that it doesn't
accidentally modify the IR being validated).

Reviewed-by: Chad Versace <chad@chad-versace.us>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/ir.cpp
src/glsl/ir.h