Searched refs:SrcModule (Results 1 – 4 of 4) sorted by relevance
231 auto &SrcModule = ModuleLoaderCache(argv0, FileName); in importFunctions() local233 if (verifyModule(SrcModule, &errs())) { in importFunctions()239 Function *F = SrcModule.getFunction(FunctionName); in importFunctions()257 auto &Entry = ModuleToGlobalsToImportMap[SrcModule.getModuleIdentifier()]; in importFunctions()267 std::unique_ptr<Module> SrcModule = in importFunctions() local269 assert(&Context == &SrcModule->getContext() && "Context mismatch"); in importFunctions()273 SrcModule->materializeMetadata(); in importFunctions()274 UpgradeDebugInfo(*SrcModule); in importFunctions()277 if (renameModuleForThinLTO(*SrcModule, *Index, &GlobalsToImport)) in importFunctions()283 if (L.linkInModule(std::move(SrcModule), Flags, &GlobalsToImport)) in importFunctions()
582 std::unique_ptr<Module> SrcModule = ModuleLoader(Name); in importFunctions() local583 assert(&DestModule.getContext() == &SrcModule->getContext() && in importFunctions()588 SrcModule->materializeMetadata(); in importFunctions()589 UpgradeDebugInfo(*SrcModule); in importFunctions()594 for (Function &F : *SrcModule) { in importFunctions()601 << SrcModule->getSourceFileName() << "\n"); in importFunctions()611 SrcModule->getSourceFileName())})); in importFunctions()616 for (GlobalVariable &GV : SrcModule->globals()) { in importFunctions()623 << SrcModule->getSourceFileName() << "\n"); in importFunctions()629 for (GlobalAlias &GA : SrcModule->aliases()) { in importFunctions()[all …]
884 static Function *replaceAliasWithAliasee(Module *SrcModule, GlobalAlias *GA) { in replaceAliasWithAliasee() argument918 std::unique_ptr<Module> SrcModule = std::move(*SrcModuleOrErr); in importFunctions() local919 assert(&DestModule.getContext() == &SrcModule->getContext() && in importFunctions()924 if (Error Err = SrcModule->materializeMetadata()) in importFunctions()930 for (Function &F : *SrcModule) { in importFunctions()937 << SrcModule->getSourceFileName() << "\n"); in importFunctions()947 SrcModule->getSourceFileName())})); in importFunctions()952 for (GlobalVariable &GV : SrcModule->globals()) { in importFunctions()959 << SrcModule->getSourceFileName() << "\n"); in importFunctions()966 for (GlobalAlias &GA : SrcModule->aliases()) { in importFunctions()[all …]
238 auto &SrcModule = ModuleLoaderCache(argv0, FileName); in importFunctions() local240 if (verifyModule(SrcModule, &errs())) { in importFunctions()246 Function *F = SrcModule.getFunction(FunctionName); in importFunctions()