ir_function constructor now takes the function name as a parameter
This commit is contained in:
+1
-3
@@ -1095,9 +1095,7 @@ ast_function_definition::hir(exec_list *instructions,
|
||||
"non-function", name);
|
||||
signature = NULL;
|
||||
} else {
|
||||
f = new ir_function();
|
||||
f->name = name;
|
||||
|
||||
f = new ir_function(name);
|
||||
state->symbols->add_function(f->name, f);
|
||||
}
|
||||
|
||||
|
||||
@@ -103,8 +103,8 @@ ir_function_signature::ir_function_signature(const glsl_type *return_type)
|
||||
}
|
||||
|
||||
|
||||
ir_function::ir_function(void)
|
||||
: ir_instruction(ir_op_func)
|
||||
ir_function::ir_function(const char *name)
|
||||
: ir_instruction(ir_op_func), name(name)
|
||||
{
|
||||
/* empty */
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user