diff options
author | Ian Lance Taylor <iant@google.com> | 2008-03-14 05:57:19 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2008-03-14 05:57:19 +0000 |
commit | be3e620119165a017266af64ae310cd6343a370a (patch) | |
tree | 57915f9f4f0cdf98cba70ce17782e116ba16dc4e /gold/symtab.h | |
parent | 36cf3ec26ac5ecc440b4fe014404981136778d2d (diff) | |
download | gdb-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.h | 6 |
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 |