glsl2: Remove the const disease from function signature's callee.
This commit is contained in:
@@ -64,8 +64,7 @@ process_call(exec_list *instructions, ir_function *f,
|
||||
{
|
||||
void *ctx = state;
|
||||
|
||||
const ir_function_signature *sig =
|
||||
f->matching_signature(actual_parameters);
|
||||
ir_function_signature *sig = f->matching_signature(actual_parameters);
|
||||
|
||||
/* The instructions param will be used when the FINISHMEs below are done */
|
||||
(void) instructions;
|
||||
|
@@ -839,7 +839,7 @@ ir_call::get_error_instruction(void *ctx)
|
||||
}
|
||||
|
||||
void
|
||||
ir_call::set_callee(const ir_function_signature *sig)
|
||||
ir_call::set_callee(ir_function_signature *sig)
|
||||
{
|
||||
assert((this->type == NULL) || (this->type == sig->return_type));
|
||||
|
||||
|
@@ -661,7 +661,7 @@ public:
|
||||
*/
|
||||
class ir_call : public ir_rvalue {
|
||||
public:
|
||||
ir_call(const ir_function_signature *callee, exec_list *actual_parameters)
|
||||
ir_call(ir_function_signature *callee, exec_list *actual_parameters)
|
||||
: callee(callee)
|
||||
{
|
||||
assert(callee->return_type != NULL);
|
||||
@@ -706,7 +706,7 @@ public:
|
||||
return callee->function_name();
|
||||
}
|
||||
|
||||
const ir_function_signature *get_callee()
|
||||
ir_function_signature *get_callee()
|
||||
{
|
||||
return callee;
|
||||
}
|
||||
@@ -714,7 +714,7 @@ public:
|
||||
/**
|
||||
* Set the function call target
|
||||
*/
|
||||
void set_callee(const ir_function_signature *sig);
|
||||
void set_callee(ir_function_signature *sig);
|
||||
|
||||
/**
|
||||
* Generates an inline version of the function before @ir,
|
||||
@@ -729,7 +729,7 @@ private:
|
||||
/* empty */
|
||||
}
|
||||
|
||||
const ir_function_signature *callee;
|
||||
ir_function_signature *callee;
|
||||
|
||||
/* List of ir_rvalue of paramaters passed in this call. */
|
||||
exec_list actual_parameters;
|
||||
|
@@ -356,7 +356,7 @@ public:
|
||||
/* Try to find the function signature referenced by the ir_call in the
|
||||
* table. If it is found, replace it with the value from the table.
|
||||
*/
|
||||
const ir_function_signature *const sig =
|
||||
ir_function_signature *sig =
|
||||
(ir_function_signature *) hash_table_find(this->ht, ir->get_callee());
|
||||
if (sig != NULL)
|
||||
ir->set_callee(sig);
|
||||
|
@@ -632,7 +632,7 @@ read_call(_mesa_glsl_parse_state *st, s_list *list)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
const ir_function_signature *callee = f->matching_signature(¶meters);
|
||||
ir_function_signature *callee = f->matching_signature(¶meters);
|
||||
if (callee == NULL) {
|
||||
ir_read_error(st, list, "couldn't find matching signature for function "
|
||||
"%s", name->value());
|
||||
|
Reference in New Issue
Block a user