Use ir_function::add_signature to create link between function and signature
ir_function_signature now has a pointer back to the ir_function that owns it.
This commit is contained in:
parent
4ef183e51d
commit
6a15d5b514
4 changed files with 18 additions and 6 deletions
|
|
@ -214,7 +214,7 @@ generate_function_instance(ir_function *f,
|
|||
ir_variable *declarations[17];
|
||||
|
||||
ir_function_signature *const sig = new ir_function_signature(type);
|
||||
f->signatures.push_tail(sig);
|
||||
f->add_signature(sig);
|
||||
|
||||
ir_label *const label = new ir_label(name);
|
||||
instructions->push_tail(label);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue