projects
/
deliverable
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
82c1820
)
From Craig Silverstein: Simplify Version_script_info::symbol_is_local
author
Ian Lance Taylor
<iant@google.com>
Thu, 24 Jan 2008 22:35:39 +0000
(22:35 +0000)
committer
Ian Lance Taylor
<iant@google.com>
Thu, 24 Jan 2008 22:35:39 +0000
(22:35 +0000)
interface.
gold/script.h
patch
|
blob
|
blame
|
history
diff --git
a/gold/script.h
b/gold/script.h
index 4d8cfab681f2d0de5edc1ac2e0aab0bcc960ef49..1f6aea672ee3ee5d39c7631824835a2a66fdcf30 100644
(file)
--- a/
gold/script.h
+++ b/
gold/script.h
@@
-115,12
+115,13
@@
class Version_script_info
{ return get_symbol_version_helper(symbol, true); }
// Return whether this symbol matches the local: section of a
{ return get_symbol_version_helper(symbol, true); }
// Return whether this symbol matches the local: section of a
- // version script (it doesn't matter which). This test is only
- // valid if get_symbol_version() returns the empty string, as we
- // don't test that here.
+ // version script (it doesn't matter which).
bool
symbol_is_local(const char* symbol) const
bool
symbol_is_local(const char* symbol) const
- { return !get_symbol_version_helper(symbol, false).empty(); }
+ {
+ return (get_symbol_version(symbol).empty()
+ && !get_symbol_version_helper(symbol, false).empty());
+ }
// Return the names of versions defined in the version script.
// Strings are allocated out of the stringpool given in the
// Return the names of versions defined in the version script.
// Strings are allocated out of the stringpool given in the
This page took
0.024007 seconds
and
4
git commands to generate.