This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch,committed]: update cgraph_*_function_insertion* comments
- From: Aldy Hernandez <aldyh at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 1 Apr 2010 13:33:06 -0400
- Subject: [patch,committed]: update cgraph_*_function_insertion* comments
I'm fixing some problems in ipa-cp.c and noticed typos in the following
function comments.
The trunk closes on April 2, so I'm safe, besides this is internal
documentation, so it's technically allowed :).
Committing as obvious.
* cgraph.c (cgraph_add_function_insertion_hook): Update comment.
(cgraph_remove_function_insertion_hook): Same.
(cgraph_call_function_insertion_hooks): Same.
Index: cgraph.c
===================================================================
--- cgraph.c (revision 157917)
+++ cgraph.c (working copy)
@@ -273,7 +273,7 @@ cgraph_call_node_removal_hooks (struct c
}
}
-/* 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 (cgra
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 (s
free (entry);
}
-/* Call all node removal hooks. */
+/* Call all node insertion hooks. */
void
cgraph_call_function_insertion_hooks (struct cgraph_node *node)
{