Revert to old behavior until linker can pass export-dynamic option.
[oota-llvm.git] / 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);