Lines Matching refs:NewModule
166 auto NewModule = std::make_unique<ModuleFile>(Type, *Entry, Generation); in addModule() local
167 NewModule->Index = Chain.size(); in addModule()
168 NewModule->FileName = FileName.str(); in addModule()
169 NewModule->ImportLoc = ImportLoc; in addModule()
170 NewModule->InputFilesValidationTimestamp = 0; in addModule()
172 if (NewModule->Kind == MK_ImplicitModule) { in addModule()
173 std::string TimestampFilename = NewModule->getTimestampFilename(); in addModule()
177 NewModule->InputFilesValidationTimestamp = in addModule()
184 NewModule->Buffer = &ModuleCache->addBuiltPCM(FileName, std::move(Buffer)); in addModule()
191 NewModule->Buffer = Buffer; in addModule()
206 auto Buf = FileMgr.getBufferForFile(NewModule->File, in addModule()
215 NewModule->Buffer = &getModuleCache().addPCM(FileName, std::move(*Buf)); in addModule()
219 NewModule->Data = PCHContainerRdr.ExtractPCH(*NewModule->Buffer); in addModule()
223 if (ExpectedSignature && checkSignature(ReadSignature(NewModule->Data), in addModule()
228 Module = Modules[*Entry] = NewModule.get(); in addModule()
230 updateModuleImports(*NewModule, ImportedBy, ImportLoc); in addModule()
232 if (!NewModule->isModule()) in addModule()
233 PCHChain.push_back(NewModule.get()); in addModule()
235 Roots.push_back(NewModule.get()); in addModule()
237 Chain.push_back(std::move(NewModule)); in addModule()