Commit 6544865a by Aldy Hernandez Committed by Aldy Hernandez

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
parent dc683a3f
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> 2010-04-01 Richard Guenther <rguenther@suse.de>
PR middle-end/43614 PR middle-end/43614
......
...@@ -273,7 +273,7 @@ cgraph_call_node_removal_hooks (struct cgraph_node *node) ...@@ -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 * struct cgraph_node_hook_list *
cgraph_add_function_insertion_hook (cgraph_node_hook hook, void *data) 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) ...@@ -290,7 +290,7 @@ cgraph_add_function_insertion_hook (cgraph_node_hook hook, void *data)
return entry; 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 void
cgraph_remove_function_insertion_hook (struct cgraph_node_hook_list *entry) 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) ...@@ -302,7 +302,7 @@ cgraph_remove_function_insertion_hook (struct cgraph_node_hook_list *entry)
free (entry); free (entry);
} }
/* Call all node removal hooks. */ /* Call all node insertion hooks. */
void void
cgraph_call_function_insertion_hooks (struct cgraph_node *node) cgraph_call_function_insertion_hooks (struct cgraph_node *node)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment