summaryrefslogtreecommitdiffstats
path: root/src/glsl/ir_clone.cpp
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2011-09-20 18:08:11 -0700
committerKenneth Graunke <kenneth@whitecape.org>2012-04-02 14:15:43 -0700
commit82065fa20ee3f2880a070f1f4f75509b910cedde (patch)
treebceb87a9745496accbec6e71a96be2873231ea0a /src/glsl/ir_clone.cpp
parentd884f60861f270cdcf7d9d47765efcf1e1de30b6 (diff)
downloadexternal_mesa3d-82065fa20ee3f2880a070f1f4f75509b910cedde.zip
external_mesa3d-82065fa20ee3f2880a070f1f4f75509b910cedde.tar.gz
external_mesa3d-82065fa20ee3f2880a070f1f4f75509b910cedde.tar.bz2
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>
Diffstat (limited to 'src/glsl/ir_clone.cpp')
-rw-r--r--src/glsl/ir_clone.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/glsl/ir_clone.cpp b/src/glsl/ir_clone.cpp
index 8a9701c..26b0d8f 100644
--- a/src/glsl/ir_clone.cpp
+++ b/src/glsl/ir_clone.cpp
@@ -398,9 +398,9 @@ public:
* table. If it is found, replace it with the value from the table.
*/
ir_function_signature *sig =
- (ir_function_signature *) hash_table_find(this->ht, ir->get_callee());
+ (ir_function_signature *) hash_table_find(this->ht, ir->callee);
if (sig != NULL)
- ir->set_callee(sig);
+ ir->callee = sig;
/* Since this may be used before function call parameters are flattened,
* the children also need to be processed.