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:
@@ -103,7 +103,7 @@ ir_dead_functions_visitor::visit_enter(ir_function_signature *ir)
|
||||
ir_visitor_status
|
||||
ir_dead_functions_visitor::visit_enter(ir_call *ir)
|
||||
{
|
||||
signature_entry *entry = this->get_signature_entry(ir->get_callee());
|
||||
signature_entry *entry = this->get_signature_entry(ir->callee);
|
||||
|
||||
entry->used = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user