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:
Ian Romanick
2010-03-31 16:37:10 -07:00
parent 4ef183e51d
commit 6a15d5b514
4 changed files with 18 additions and 6 deletions
+1 -1
View File
@@ -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);