Skip to content

Commit

Permalink
Revert to old behavior until linker can pass export-dynamic option.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169720 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
isanbard committed Dec 10, 2012
1 parent 3d9afa8 commit 12a38ad
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tools/lto/LTOCodeGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 12a38ad

Please sign in to comment.