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:
Bill Wendling
2012-12-10 21:33:45 +00:00
parent e1dee8a06e
commit 50f318384c
5 changed files with 3 additions and 25 deletions

View File

@@ -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.