Lines Matching refs:NewModule
171 auto NewModule = std::make_unique<ModuleFile>(Type, *Entry, Generation); in addModule() local
172 NewModule->Index = Chain.size(); in addModule()
173 NewModule->FileName = FileName.str(); in addModule()
174 NewModule->ImportLoc = ImportLoc; in addModule()
175 NewModule->InputFilesValidationTimestamp = 0; in addModule()
177 if (NewModule->Kind == MK_ImplicitModule) in addModule()
178 NewModule->InputFilesValidationTimestamp = in addModule()
179 ModCache->getModuleTimestamp(NewModule->FileName); in addModule()
184 NewModule->Buffer = &getModuleCache().getInMemoryModuleCache().addBuiltPCM( in addModule()
193 NewModule->Buffer = Buffer; in addModule()
209 auto Buf = FileMgr.getBufferForFile(NewModule->File, in addModule()
218 NewModule->Buffer = &getModuleCache().getInMemoryModuleCache().addPCM( in addModule()
223 NewModule->Data = PCHContainerRdr.ExtractPCH(*NewModule->Buffer); in addModule()
227 if (ExpectedSignature && checkSignature(ReadSignature(NewModule->Data), in addModule()
232 Module = Modules[*Entry] = NewModule.get(); in addModule()
234 updateModuleImports(*NewModule, ImportedBy, ImportLoc); in addModule()
236 if (!NewModule->isModule()) in addModule()
237 PCHChain.push_back(NewModule.get()); in addModule()
239 Roots.push_back(NewModule.get()); in addModule()
241 Chain.push_back(std::move(NewModule)); in addModule()