Revert to old behavior until linker can pass export-dynamic option.
authorBill Wendling <isanbard@gmail.com>
Mon, 10 Dec 2012 02:51:16 +0000 (02:51 +0000)
committerBill Wendling <isanbard@gmail.com>
Mon, 10 Dec 2012 02:51:16 +0000 (02:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169720 91177308-0d34-0410-b5e6-96231b3b80d8

tools/lto/LTOCodeGenerator.cpp

index 90c47eb27ba0dfef1d0a50fb91a7246d9242311a..dfd8858cd830e5a116f73185c684de918d61fb74 100644 (file)
@@ -379,7 +379,12 @@ bool LTOCodeGenerator::generateObjectFile(raw_ostream &out,
   // keeps only main if it exists and does nothing for libraries. Instead
   // we create the pass ourselves with the symbol list provided by the linker.
   PassManagerBuilder().populateLTOPassManager(passes,
-                                              /*Internalize=*/!_exportDynamic,
+                                              /*Internalize=*/
+                                              // FIXME: remove 'false' once
+                                              // Darwin linker can pass this
+                                              // option.
+                                              // <rdar://problem/12839986>
+                                              false /*!_exportDynamic*/,
                                               !DisableInline,
                                               DisableGVNLoadPRE);