diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-07-31 19:32:04 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-07-31 19:32:04 +0000 |
| commit | 0c54419d5d05d047778094ebf58fa91a37d24b6e (patch) | |
| tree | dd2f8e6a430d180b659bb741435d202dd38f6435 /llvm | |
| parent | f51dc3b5d410660e4b87daf78a8eea7ddd90d0b6 (diff) | |
| download | bcm5719-llvm-0c54419d5d05d047778094ebf58fa91a37d24b6e.tar.gz bcm5719-llvm-0c54419d5d05d047778094ebf58fa91a37d24b6e.zip | |
Remove unused argument.
Thanks to Justin Bogner for noticing it.
llvm-svn: 214426
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/tools/gold/gold-plugin.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/gold/gold-plugin.cpp b/llvm/tools/gold/gold-plugin.cpp index 4ad9289745c..7b37e4613ff 100644 --- a/llvm/tools/gold/gold-plugin.cpp +++ b/llvm/tools/gold/gold-plugin.cpp @@ -379,7 +379,7 @@ static ld_plugin_status claim_file_hook(const ld_plugin_input_file *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) @@ -409,7 +409,7 @@ static ld_plugin_status all_symbols_read_hook(void) { 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) |

