[llvm] r214426 - Remove unused argument.
Rafael Espindola
rafael.espindola at gmail.com
Thu Jul 31 12:32:04 PDT 2014
Author: rafael
Date: Thu Jul 31 14:32:04 2014
New Revision: 214426
URL: http://llvm.org/viewvc/llvm-project?rev=214426&view=rev
Log:
Remove unused argument.
Thanks to Justin Bogner for noticing it.
Modified:
llvm/trunk/tools/gold/gold-plugin.cpp
Modified: llvm/trunk/tools/gold/gold-plugin.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/gold/gold-plugin.cpp?rev=214426&r1=214425&r2=214426&view=diff
==============================================================================
--- llvm/trunk/tools/gold/gold-plugin.cpp (original)
+++ llvm/trunk/tools/gold/gold-plugin.cpp Thu Jul 31 14:32:04 2014
@@ -379,7 +379,7 @@ static ld_plugin_status claim_file_hook(
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)
@@ -409,7 +409,7 @@ static ld_plugin_status all_symbols_read
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)
More information about the llvm-commits
mailing list