summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-12-10 02:51:16 +0000
committerBill Wendling <isanbard@gmail.com>2012-12-10 02:51:16 +0000
commit39d3809368d502939c87a6e34c798746b3abb8ef (patch)
tree2d4c25294b581d24b589ac1526827ca7b1863f8f
parente45f4658a36055770d0a8f90badeb4cf96dc285f (diff)
downloadbcm5719-llvm-39d3809368d502939c87a6e34c798746b3abb8ef.tar.gz
bcm5719-llvm-39d3809368d502939c87a6e34c798746b3abb8ef.zip
Revert to old behavior until linker can pass export-dynamic option.
llvm-svn: 169720
-rw-r--r--llvm/tools/lto/LTOCodeGenerator.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/llvm/tools/lto/LTOCodeGenerator.cpp b/llvm/tools/lto/LTOCodeGenerator.cpp
index 90c47eb27ba..dfd8858cd83 100644
--- a/llvm/tools/lto/LTOCodeGenerator.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud