forked from OSchip/llvm-project
Revert to old behavior until linker can pass export-dynamic option.
llvm-svn: 169720
This commit is contained in:
parent
e45f4658a3
commit
39d3809368
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue