mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-03 13:31:05 +00:00
Don't produce output only if *all* files are unused.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105962 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
774bc882fd
commit
38a979bf95
@ -368,15 +368,15 @@ static ld_plugin_status all_symbols_read_hook(void) {
|
|||||||
api_file << I->syms[i].name << "\n";
|
api_file << I->syms[i].name << "\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (options::generate_api_file)
|
if (options::generate_api_file)
|
||||||
api_file.close();
|
api_file.close();
|
||||||
|
|
||||||
if (!anySymbolsPreserved) {
|
if (!anySymbolsPreserved) {
|
||||||
// This entire file is unnecessary!
|
// All of the IL is unnecessary!
|
||||||
lto_codegen_dispose(cg);
|
lto_codegen_dispose(cg);
|
||||||
return LDPS_OK;
|
return LDPS_OK;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
lto_codegen_set_pic_model(cg, output_type);
|
lto_codegen_set_pic_model(cg, output_type);
|
||||||
|
Loading…
Reference in New Issue
Block a user