From: Ian Lance Taylor Date: Thu, 24 Jan 2008 22:35:39 +0000 (+0000) Subject: From Craig Silverstein: Simplify Version_script_info::symbol_is_local X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;h=1dd940af63d6597646b96572532894e87836b5e2;p=deliverable%2Fbinutils-gdb.git From Craig Silverstein: Simplify Version_script_info::symbol_is_local interface. --- diff --git a/gold/script.h b/gold/script.h index 4d8cfab681..1f6aea672e 100644 --- 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 - // 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 - { 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