mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
ir_function constructor now takes the function name as a parameter
This commit is contained in:
parent
bb7e00a1cd
commit
882dad7540
3 changed files with 4 additions and 6 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
4
ir.cpp
4
ir.cpp
|
|
@ -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 */
|
||||
}
|
||||
|
|
|
|||
2
ir.h
2
ir.h
|
|
@ -157,7 +157,7 @@ public:
|
|||
*/
|
||||
class ir_function : public ir_instruction {
|
||||
public:
|
||||
ir_function(void);
|
||||
ir_function(const char *name);
|
||||
|
||||
virtual void accept(ir_visitor *v)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue