Lines Matching refs:NewModule
170 auto NewModule = std::make_unique<ModuleFile>(Type, Generation); in addModule() local
171 NewModule->Index = Chain.size(); in addModule()
172 NewModule->FileName = FileName.str(); in addModule()
173 NewModule->File = Entry; in addModule()
174 NewModule->ImportLoc = ImportLoc; in addModule()
175 NewModule->InputFilesValidationTimestamp = 0; in addModule()
177 if (NewModule->Kind == MK_ImplicitModule) { in addModule()
178 std::string TimestampFilename = NewModule->getTimestampFilename(); in addModule()
182 NewModule->InputFilesValidationTimestamp = in addModule()
189 NewModule->Buffer = &ModuleCache->addBuiltPCM(FileName, std::move(Buffer)); in addModule()
196 NewModule->Buffer = Buffer; in addModule()
216 Buf = FileMgr.getBufferForFile(NewModule->File, in addModule()
226 NewModule->Buffer = &getModuleCache().addPCM(FileName, std::move(*Buf)); in addModule()
230 NewModule->Data = PCHContainerRdr.ExtractPCH(*NewModule->Buffer); in addModule()
234 if (ExpectedSignature && checkSignature(ReadSignature(NewModule->Data), in addModule()
239 Module = Modules[Entry] = NewModule.get(); in addModule()
241 updateModuleImports(*NewModule, ImportedBy, ImportLoc); in addModule()
243 if (!NewModule->isModule()) in addModule()
244 PCHChain.push_back(NewModule.get()); in addModule()
246 Roots.push_back(NewModule.get()); in addModule()
248 Chain.push_back(std::move(NewModule)); in addModule()