glsl: Remove ir_call::get_callee() and set_callee().
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 21 Sep 2011 01:08:11 +0000 (18:08 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 2 Apr 2012 21:15:43 +0000 (14:15 -0700)
commit82065fa20ee3f2880a070f1f4f75509b910cedde
treebceb87a9745496accbec6e71a96be2873231ea0a
parentd884f60861f270cdcf7d9d47765efcf1e1de30b6
glsl: Remove ir_call::get_callee() and set_callee().

Previously, set_callee() performed some assertions about the type of the
ir_call; protecting the bare pointer ensured these checks would be run.

However, ir_call no longer has a type, so the getter and setter methods
don't actually do anything useful.  Remove them in favor of accessing
callee directly, as is done with most other fields in our IR.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
18 files changed:
src/glsl/ir.cpp
src/glsl/ir.h
src/glsl/ir_clone.cpp
src/glsl/ir_function_can_inline.cpp
src/glsl/ir_function_detect_recursion.cpp
src/glsl/ir_validate.cpp
src/glsl/link_functions.cpp
src/glsl/linker.cpp
src/glsl/lower_clip_distance.cpp
src/glsl/opt_constant_folding.cpp
src/glsl/opt_constant_propagation.cpp
src/glsl/opt_constant_variable.cpp
src/glsl/opt_copy_propagation.cpp
src/glsl/opt_copy_propagation_elements.cpp
src/glsl/opt_dead_functions.cpp
src/glsl/opt_tree_grafting.cpp
src/mesa/program/ir_to_mesa.cpp
src/mesa/state_tracker/st_glsl_to_tgsi.cpp