Lines Matching refs:NewModule
144 auto NewModule = llvm::make_unique<ModuleFile>(Type, Generation); in addModule() local
145 NewModule->Index = Chain.size(); in addModule()
146 NewModule->FileName = FileName.str(); in addModule()
147 NewModule->File = Entry; in addModule()
148 NewModule->ImportLoc = ImportLoc; in addModule()
149 NewModule->InputFilesValidationTimestamp = 0; in addModule()
151 if (NewModule->Kind == MK_ImplicitModule) { in addModule()
152 std::string TimestampFilename = NewModule->getTimestampFilename(); in addModule()
156 NewModule->InputFilesValidationTimestamp = in addModule()
163 NewModule->Buffer = &PCMCache->addBuffer(FileName, std::move(Buffer)); in addModule()
169 NewModule->Buffer = Buffer; in addModule()
179 Buf = FileMgr.getBufferForFile(NewModule->File, in addModule()
189 NewModule->Buffer = &PCMCache->addBuffer(FileName, std::move(*Buf)); in addModule()
193 NewModule->Data = PCHContainerRdr.ExtractPCH(*NewModule->Buffer); in addModule()
197 if (ExpectedSignature && checkSignature(ReadSignature(NewModule->Data), in addModule()
201 if (!PCMCache->tryToRemoveBuffer(NewModule->FileName)) in addModule()
202 FileMgr.invalidateCache(NewModule->File); in addModule()
207 Module = Modules[Entry] = NewModule.get(); in addModule()
209 updateModuleImports(*NewModule, ImportedBy, ImportLoc); in addModule()
211 if (!NewModule->isModule()) in addModule()
212 PCHChain.push_back(NewModule.get()); in addModule()
214 Roots.push_back(NewModule.get()); in addModule()
216 Chain.push_back(std::move(NewModule)); in addModule()