From dccae0f42e9e052b7721e805858d10d3ec345685 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Mon, 30 Nov 2020 15:21:38 -0700 Subject: [PATCH] Add function comments for recently added member functions. gcc/ * symtab.c (set_section_for_node): Add function comment. (set_section_from_node): Likewise. --- gcc/symtab.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gcc/symtab.c b/gcc/symtab.c index 393d6b07870..fd7d553c112 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) { -- 2.30.2