aboutsummaryrefslogtreecommitdiff
path: root/gold/symtab.h
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2008-03-14 05:57:19 +0000
committerIan Lance Taylor <iant@google.com>2008-03-14 05:57:19 +0000
commitbe3e620119165a017266af64ae310cd6343a370a (patch)
tree57915f9f4f0cdf98cba70ce17782e116ba16dc4e /gold/symtab.h
parent36cf3ec26ac5ecc440b4fe014404981136778d2d (diff)
downloadgdb-be3e620119165a017266af64ae310cd6343a370a.zip
gdb-be3e620119165a017266af64ae310cd6343a370a.tar.gz
gdb-be3e620119165a017266af64ae310cd6343a370a.tar.bz2
Don't get confused about whether a symbol is the default version if we
see a later reference to it. Add tests for this case.
Diffstat (limited to 'gold/symtab.h')
-rw-r--r--gold/symtab.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/gold/symtab.h b/gold/symtab.h
index 5e5e1d3..8da9e6d 100644
--- a/gold/symtab.h
+++ b/gold/symtab.h
@@ -121,10 +121,10 @@ class Symbol
return this->is_def_;
}
- // Set whether this version is the default for this symbol name.
+ // Set that this version is the default for this symbol name.
void
- set_is_default(bool def)
- { this->is_def_ = def; }
+ set_is_default()
+ { this->is_def_ = true; }
// Return the symbol source.
Source