Revert to old behavior until linker can pass export-dynamic option.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169720 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Bill Wendling 2012-12-10 02:51:16 +00:00
parent 3d9afa8e97
commit 12a38adc58

View 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);