summaryrefslogtreecommitdiffstats
path: root/src/glsl/ir.h
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2011-09-20 18:08:11 -0700
committerKenneth Graunke <[email protected]>2012-04-02 14:15:43 -0700
commit82065fa20ee3f2880a070f1f4f75509b910cedde (patch)
treebceb87a9745496accbec6e71a96be2873231ea0a /src/glsl/ir.h
parentd884f60861f270cdcf7d9d47765efcf1e1de30b6 (diff)
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 <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/glsl/ir.h')
-rw-r--r--src/glsl/ir.h21
1 files changed, 5 insertions, 16 deletions
diff --git a/src/glsl/ir.h b/src/glsl/ir.h
index 054e2acaadb..6adfaa38e06 100644
--- a/src/glsl/ir.h
+++ b/src/glsl/ir.h
@@ -1072,19 +1072,6 @@ public:
}
/**
- * Get the function signature bound to this function call
- */
- ir_function_signature *get_callee()
- {
- return callee;
- }
-
- /**
- * Set the function call target
- */
- void set_callee(ir_function_signature *sig);
-
- /**
* Generates an inline version of the function before @ir,
* storing the return value in return_deref.
*/
@@ -1096,14 +1083,16 @@ public:
*/
ir_dereference_variable *return_deref;
+ /**
+ * The specific function signature being called.
+ */
+ ir_function_signature *callee;
+
/* List of ir_rvalue of paramaters passed in this call. */
exec_list actual_parameters;
/** Should this call only bind to a built-in function? */
bool use_builtin;
-
-private:
- ir_function_signature *callee;
};