summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1023307)
raw | patch | inline | side by side (parent: 1023307)
author | Rafael Espindola <rafael.espindola@gmail.com> | |
Thu, 31 Jul 2014 19:32:04 +0000 (19:32 +0000) | ||
committer | Rafael Espindola <rafael.espindola@gmail.com> | |
Thu, 31 Jul 2014 19:32:04 +0000 (19:32 +0000) |
Thanks to Justin Bogner for noticing it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214426 91177308-0d34-0410-b5e6-96231b3b80d8
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214426 91177308-0d34-0410-b5e6-96231b3b80d8
tools/gold/gold-plugin.cpp | patch | blob | history |
index 4ad9289745c21078d7ebc7c2bfe2949081eb9b96..7b37e4613ffafae701a21f05ed032c3cb18ea880 100644 (file)
return LDPS_OK;
}
-static bool mustPreserve(const claimed_file &F, ld_plugin_symbol &Sym) {
+static bool mustPreserve(ld_plugin_symbol &Sym) {
if (Sym.resolution == LDPR_PREVAILING_DEF)
return true;
if (Sym.resolution == LDPR_PREVAILING_DEF_IRONLY_EXP)
continue;
get_symbols(F.handle, F.syms.size(), &F.syms[0]);
for (ld_plugin_symbol &Sym : F.syms) {
- if (mustPreserve(F, Sym)) {
+ if (mustPreserve(Sym)) {
CodeGen->addMustPreserveSymbol(Sym.name);
if (options::generate_api_file)