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