From: Jeff Law Date: Mon, 30 Nov 2020 22:21:38 +0000 (-0700) Subject: Add function comments for recently added member functions. X-Git-Tag: basepoints/gcc-12~2665 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dccae0f42e9e052b7721e805858d10d3ec345685;p=thirdparty%2Fgcc.git Add function comments for recently added member functions. gcc/ * symtab.c (set_section_for_node): Add function comment. (set_section_from_node): Likewise. --- diff --git a/gcc/symtab.c b/gcc/symtab.c index 393d6b078707..fd7d553c112c 100644 --- a/gcc/symtab.c +++ b/gcc/symtab.c @@ -1668,6 +1668,10 @@ symtab_node::set_section_for_node (const char *section) } } +/* Set the section of node THIS to be the same as the section + of node OTHER. Keep reference counts of the sections + up-to-date as needed. */ + void symtab_node::set_section_for_node (const symtab_node &other) { @@ -1691,6 +1695,9 @@ symtab_node::set_section_from_string (symtab_node *n, void *s) return false; } +/* Set the section of node N to be the same as the section + of node O. */ + bool symtab_node::set_section_from_node (symtab_node *n, void *o) {