summaryrefslogtreecommitdiff
path: root/tools/lto/lto.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-12-10 21:33:45 +0000
committerBill Wendling <isanbard@gmail.com>2012-12-10 21:33:45 +0000
commit50f318384c4db1419f9c48d85af350260c4976b8 (patch)
treea9f2289117d1c965701ec5d7bcb55f96466dc248 /tools/lto/lto.cpp
parente1dee8a06e93f38f81f09887361045367a810436 (diff)
downloadllvm-50f318384c4db1419f9c48d85af350260c4976b8.tar.gz
llvm-50f318384c4db1419f9c48d85af350260c4976b8.tar.bz2
llvm-50f318384c4db1419f9c48d85af350260c4976b8.tar.xz
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
Diffstat (limited to 'tools/lto/lto.cpp')
-rw-r--r--tools/lto/lto.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/tools/lto/lto.cpp b/tools/lto/lto.cpp
index 630e7045a5..11ad532be8 100644
--- a/tools/lto/lto.cpp
+++ b/tools/lto/lto.cpp
@@ -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.