glsl: Rename class variable_entry to ir_variable_refcount_entry.
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 29 Jan 2012 00:58:37 +0000 (16:58 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 31 Jan 2012 01:44:52 +0000 (17:44 -0800)
commite3b520049675f78065eccbc25c001ea77861c129
treebef7b2bf8bb25cbb2e271685e3434fc64227a940
parentbed20f02a771f43e1c5092254705701c228cfa7f
glsl: Rename class variable_entry to ir_variable_refcount_entry.

Exporting a publicly visible class with a generic name like
"variable_entry" via ir_variable_refcount.h is kind of mean.

Many IR transformers would like to define their own "variable_entry"
class.  If they accidentally include this header, the compiler/linker
may get confused and try to instantiate the wrong variable_entry class,
leading to bizarre runtime crashes.

The hope is that renaming this one will allow .cpp files to safely
declare and use their own file-scope "variable_entry" classes.

This avoids crashes caused by converting src/glsl to automake.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-and-tested-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/glsl/ir_variable_refcount.cpp
src/glsl/ir_variable_refcount.h
src/glsl/opt_dead_code.cpp
src/glsl/opt_tree_grafting.cpp