: _context(getGlobalContext()),
_linker("LinkTimeOptimizer", "ld-temp.o", _context), _target(NULL),
_emitDwarfDebugInfo(false), _scopeRestrictionsDone(false),
- _exportDynamic(false), _codeModel(LTO_CODEGEN_PIC_MODEL_DYNAMIC),
+ _codeModel(LTO_CODEGEN_PIC_MODEL_DYNAMIC),
_nativeObjectFile(NULL) {
InitializeAllTargets();
InitializeAllTargetMCs();
LLVMCompilerUsed->setSection("llvm.metadata");
- if (!_exportDynamic)
- passes.add(createInternalizePass(mustPreserveList));
+ passes.add(createInternalizePass(mustPreserveList));
// apply scope restrictions
passes.run(*mergedModule);
// 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=*/
- // FIXME: remove 'false' once
- // Darwin linker can pass this
- // option.
- // <rdar://problem/12839986>
- false /*!_exportDynamic*/,
+ /*Internalize=*/false,
!DisableInline,
DisableGVNLoadPRE);