aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraphclones.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cgraphclones.c')
-rw-r--r--gcc/cgraphclones.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/gcc/cgraphclones.c b/gcc/cgraphclones.c
index 6f83d74..d57cd9f 100644
--- a/gcc/cgraphclones.c
+++ b/gcc/cgraphclones.c
@@ -459,7 +459,7 @@ cgraph_clone_node (struct cgraph_node *n, tree decl, gcov_type count, int freq,
for (e = n->indirect_calls; e; e = e->next_callee)
cgraph_clone_edge (e, new_node, e->call_stmt, e->lto_stmt_uid,
count_scale, freq, update_original);
- ipa_clone_references (new_node, &n->ref_list);
+ new_node->clone_references (n);
new_node->next_sibling_clone = n->clones;
if (n->clones)
@@ -568,8 +568,7 @@ cgraph_create_virtual_clone (struct cgraph_node *old_node,
|| in_lto_p)
new_node->unique_name = true;
FOR_EACH_VEC_SAFE_ELT (tree_map, i, map)
- ipa_maybe_record_reference (new_node, map->new_tree,
- IPA_REF_ADDR, NULL);
+ new_node->maybe_add_reference (map->new_tree, IPA_REF_ADDR, NULL);
if (!args_to_skip)
new_node->clone.combined_args_to_skip = old_node->clone.combined_args_to_skip;
else if (old_node->clone.combined_args_to_skip)
@@ -1035,7 +1034,7 @@ cgraph_materialize_clone (struct cgraph_node *node)
{
cgraph_release_function_body (node->clone_of);
cgraph_node_remove_callees (node->clone_of);
- ipa_remove_all_references (&node->clone_of->ref_list);
+ node->clone_of->remove_all_references ();
}
node->clone_of = NULL;
bitmap_obstack_release (NULL);
@@ -1120,10 +1119,10 @@ cgraph_materialize_all_clones (void)
if (!node->analyzed && node->callees)
{
cgraph_node_remove_callees (node);
- ipa_remove_all_references (&node->ref_list);
+ node->remove_all_references ();
}
else
- ipa_clear_stmts_in_references (node);
+ node->clear_stmts_in_references ();
if (cgraph_dump_file)
fprintf (cgraph_dump_file, "Materialization Call site updates done.\n");
#ifdef ENABLE_CHECKING