{
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;
}
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));
*/
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);
return callee->function_name();
}
- const ir_function_signature *get_callee()
+ ir_function_signature *get_callee()
{
return callee;
}
/**
* 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,
/* empty */
}
- const ir_function_signature *callee;
+ ir_function_signature *callee;
/* List of ir_rvalue of paramaters passed in this call. */
exec_list actual_parameters;
/* 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);
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());