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>
This commit is contained in:
Kenneth Graunke
2011-09-20 18:08:11 -07:00
parent d884f60861
commit 82065fa20e
18 changed files with 24 additions and 40 deletions

View File

@@ -217,7 +217,7 @@ public:
if (this->current == NULL)
return visit_continue;
function *const target = this->get_function(call->get_callee());
function *const target = this->get_function(call->callee);
/* Create a link from the caller to the callee.
*/