summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/lto/LTOCodeGenerator.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/lto/LTOCodeGenerator.cpp b/tools/lto/LTOCodeGenerator.cpp
index 90c47eb27b..dfd8858cd8 100644
--- a/tools/lto/LTOCodeGenerator.cpp
+++ b/tools/lto/LTOCodeGenerator.cpp
@@ -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);