aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)
{