mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-06 06:33:24 +00:00
Remove unused argument.
Thanks to Justin Bogner for noticing it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214426 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1023307a7d
commit
72c5355bbe
@ -379,7 +379,7 @@ static ld_plugin_status claim_file_hook(const ld_plugin_input_file *file,
|
|||||||
return LDPS_OK;
|
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)
|
if (Sym.resolution == LDPR_PREVAILING_DEF)
|
||||||
return true;
|
return true;
|
||||||
if (Sym.resolution == LDPR_PREVAILING_DEF_IRONLY_EXP)
|
if (Sym.resolution == LDPR_PREVAILING_DEF_IRONLY_EXP)
|
||||||
@ -409,7 +409,7 @@ static ld_plugin_status all_symbols_read_hook(void) {
|
|||||||
continue;
|
continue;
|
||||||
get_symbols(F.handle, F.syms.size(), &F.syms[0]);
|
get_symbols(F.handle, F.syms.size(), &F.syms[0]);
|
||||||
for (ld_plugin_symbol &Sym : F.syms) {
|
for (ld_plugin_symbol &Sym : F.syms) {
|
||||||
if (mustPreserve(F, Sym)) {
|
if (mustPreserve(Sym)) {
|
||||||
CodeGen->addMustPreserveSymbol(Sym.name);
|
CodeGen->addMustPreserveSymbol(Sym.name);
|
||||||
|
|
||||||
if (options::generate_api_file)
|
if (options::generate_api_file)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user