mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-19 02:25:01 +00:00
Revert r169656.
The linker will call `lto_codegen_add_must_preserve_symbol' on all globals that should be kept around. The linker will pretend that a dylib is being created. <rdar://problem/12528059> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169770 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -174,12 +174,6 @@ void lto_codegen_set_assembler_args(lto_code_gen_t cg, const char **args,
|
||||
// In here only for backwards compatibility. We use MC now.
|
||||
}
|
||||
|
||||
/// lto_codegen_set_export_dynamic - If set, then codegen will export all
|
||||
/// symbols (e.g. the internalize pass won't run).
|
||||
void lto_codegen_set_export_dynamic(lto_code_gen_t cg, bool val) {
|
||||
cg->setExportDynamic(val);
|
||||
}
|
||||
|
||||
/// lto_codegen_add_must_preserve_symbol - Adds to a list of all global symbols
|
||||
/// that must exist in the final generated code. If a function is not listed
|
||||
/// there, it might be inlined into every usage and optimized away.
|
||||
|
Reference in New Issue
Block a user