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

View File

@@ -1530,7 +1530,7 @@ ast_function_definition::hir(exec_list *instructions,
*/
if (signature == NULL) {
signature = new ir_function_signature(return_type);
f->signatures.push_tail(signature);
f->add_signature(signature);
} else {
/* Destroy all of the previous parameter information. The previous
* parameter information comes from the function prototype, and it can