cgraph.c (cgraph_add_function_insertion_hook): Update comment.

* cgraph.c (cgraph_add_function_insertion_hook): Update comment.
        (cgraph_remove_function_insertion_hook): Same.
        (cgraph_call_function_insertion_hooks): Same.

From-SVN: r157920
This commit is contained in:
Aldy Hernandez 2010-04-01 17:33:32 +00:00 committed by Aldy Hernandez
parent dc683a3f63
commit 6544865aad
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2010-04-01 Aldy Hernandez <aldyh@redhat.com>
* cgraph.c (cgraph_add_function_insertion_hook): Update comment.
(cgraph_remove_function_insertion_hook): Same.
(cgraph_call_function_insertion_hooks): Same.
2010-04-01 Richard Guenther <rguenther@suse.de>
PR middle-end/43614

View File

@ -273,7 +273,7 @@ cgraph_call_node_removal_hooks (struct cgraph_node *node)
}
}
/* Register HOOK to be called with DATA on each removed node. */
/* Register HOOK to be called with DATA on each inserted node. */
struct cgraph_node_hook_list *
cgraph_add_function_insertion_hook (cgraph_node_hook hook, void *data)
{
@ -290,7 +290,7 @@ cgraph_add_function_insertion_hook (cgraph_node_hook hook, void *data)
return entry;
}
/* Remove ENTRY from the list of hooks called on removing nodes. */
/* Remove ENTRY from the list of hooks called on inserted nodes. */
void
cgraph_remove_function_insertion_hook (struct cgraph_node_hook_list *entry)
{
@ -302,7 +302,7 @@ cgraph_remove_function_insertion_hook (struct cgraph_node_hook_list *entry)
free (entry);
}
/* Call all node removal hooks. */
/* Call all node insertion hooks. */
void
cgraph_call_function_insertion_hooks (struct cgraph_node *node)
{