Lines Matching refs:MergedModule

132     : Context(Context), MergedModule(new Module("ld-temp.o", Context)),  in LTOCodeGenerator()
133 TheLinker(new Linker(*MergedModule)) { in LTOCodeGenerator()
173 MergedModule = Mod->takeModule(); in setModule()
174 TheLinker = std::make_unique<Linker>(*MergedModule); in setModule()
229 WriteBitcodeToFile(*MergedModule, Out.os(), ShouldEmbedUselists); in writeMergedModules()
391 TripleStr = MergedModule->getTargetTriple(); in determineTarget()
394 MergedModule->setTargetTriple(TripleStr); in determineTarget()
488 preserveDiscardableGVs(*MergedModule, mustPreserveGV); in applyScopeRestrictions()
502 for (auto &GV : *MergedModule) in applyScopeRestrictions()
504 for (auto &GV : MergedModule->globals()) in applyScopeRestrictions()
506 for (auto &GV : MergedModule->aliases()) in applyScopeRestrictions()
512 updateCompilerUsed(*MergedModule, *TargetMach, AsmUndefinedRefs); in applyScopeRestrictions()
514 internalizeModule(*MergedModule, mustPreserveGV); in applyScopeRestrictions()
541 llvm::for_each(MergedModule->functions(), externalize); in restoreLinkageForExternals()
542 llvm::for_each(MergedModule->globals(), externalize); in restoreLinkageForExternals()
543 llvm::for_each(MergedModule->aliases(), externalize); in restoreLinkageForExternals()
553 if (verifyModule(*MergedModule, &dbgs(), &BrokenDebugInfo)) in verifyMergedModuleOnce()
557 StripDebugInfo(*MergedModule); in verifyMergedModuleOnce()
598 updatePublicTypeTestCalls(*MergedModule, in optimize()
601 *MergedModule, in optimize()
617 MergedModule->setDataLayout(TargetMach->createDataLayout()); in optimize()
625 WriteBitcodeToFile(*MergedModule, OS, in optimize()
631 if (!opt(Config, TargetMach.get(), 0, *MergedModule, /*IsThinLTO=*/false, in optimize()
657 Error Err = backend(Config, AddStream, ParallelismLevel, *MergedModule, in compileOptimized()