aboutsummaryrefslogtreecommitdiff
path: root/gcc/symtab.c
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>2020-11-30 15:21:38 -0700
committerJeff Law <law@redhat.com>2020-11-30 15:21:38 -0700
commitdccae0f42e9e052b7721e805858d10d3ec345685 (patch)
tree31eca5fdd53b15a8dc3f48ae75eae6437aaf9d38 /gcc/symtab.c
parenteafb46ce90c23efd22c61d941face060bb9f11f3 (diff)
downloadgcc-dccae0f42e9e052b7721e805858d10d3ec345685.zip
gcc-dccae0f42e9e052b7721e805858d10d3ec345685.tar.gz
gcc-dccae0f42e9e052b7721e805858d10d3ec345685.tar.bz2
Add function comments for recently added member functions.
gcc/ * symtab.c (set_section_for_node): Add function comment. (set_section_from_node): Likewise.
Diffstat (limited to 'gcc/symtab.c')
-rw-r--r--gcc/symtab.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/symtab.c b/gcc/symtab.c
index 393d6b0..fd7d553 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)
{