Home
last modified time | relevance | path

Searched refs:CurrentModule (Results 1 – 18 of 18) sorted by relevance

/minix3/external/bsd/llvm/dist/clang/lib/Serialization/
H A DModuleManager.cpp311 ModuleFile *CurrentModule = Queue[QueueStart++]; in visit() local
312 VisitOrder.push_back(CurrentModule); in visit()
317 M = CurrentModule->Imports.begin(), in visit()
318 MEnd = CurrentModule->Imports.end(); in visit()
352 ModuleFile *CurrentModule = VisitOrder[I]; in visit() local
354 if (State->VisitNumber[CurrentModule->Index] == VisitNumber) in visit()
358 assert(State->VisitNumber[CurrentModule->Index] == VisitNumber - 1); in visit()
359 State->VisitNumber[CurrentModule->Index] = VisitNumber; in visit()
360 if (!Visitor(*CurrentModule, UserData)) in visit()
366 ModuleFile *NextModule = CurrentModule; in visit()
H A DASTReader.cpp4419 Module *CurrentModule = nullptr; in ReadSubmoduleBlock() local
4449 if (!CurrentModule && Kind != SUBMODULE_METADATA && in ReadSubmoduleBlock()
4482 CurrentModule = ModMap.findOrCreateModule(Name, ParentModule, IsFramework, in ReadSubmoduleBlock()
4496 if (const FileEntry *CurFile = CurrentModule->getASTFile()) { in ReadSubmoduleBlock()
4500 << CurrentModule->getTopLevelModuleName() in ReadSubmoduleBlock()
4508 CurrentModule->setASTFile(F.File); in ReadSubmoduleBlock()
4511 CurrentModule->IsFromModuleFile = true; in ReadSubmoduleBlock()
4512 CurrentModule->IsSystem = IsSystem || CurrentModule->IsSystem; in ReadSubmoduleBlock()
4513 CurrentModule->IsExternC = IsExternC; in ReadSubmoduleBlock()
4514 CurrentModule->InferSubmodules = InferSubmodules; in ReadSubmoduleBlock()
[all …]
H A DASTWriter.cpp1256 Record.push_back(LangOpts.CurrentModule.size()); in WriteControlBlock()
1257 Record.append(LangOpts.CurrentModule.begin(), LangOpts.CurrentModule.end()); in WriteControlBlock()
/minix3/external/bsd/llvm/dist/llvm/examples/Kaleidoscope/MCJIT/complete/
H A Dtoy.cpp797 MCJITHelper(LLVMContext& C) : Context(C), CurrentModule(NULL) { in MCJITHelper()
828 Module *CurrentModule; member in MCJITHelper
894 if (*it == CurrentModule) in getFunction()
897 assert(CurrentModule != NULL); in getFunction()
901 Function *PF = CurrentModule->getFunction(FnName); in getFunction()
912 CurrentModule); in getFunction()
921 if (CurrentModule) in getModuleForNewFunction()
922 return CurrentModule; in getModuleForNewFunction()
928 CurrentModule = M; in getModuleForNewFunction()
936 if (M == CurrentModule) in compileModule()
[all …]
/minix3/external/bsd/llvm/dist/clang/lib/Basic/
H A DLangOptions.cpp35 CurrentModule.clear(); in resetNonModularOptions()
/minix3/external/bsd/llvm/dist/clang/lib/Frontend/
H A DFrontendActions.cpp271 if (CI.getLangOpts().CurrentModule.empty()) { in BeginSourceFileAction()
286 SourceMgr.pushModuleBuildStack(CI.getLangOpts().CurrentModule, in BeginSourceFileAction()
290 Module = HS.lookupModule(CI.getLangOpts().CurrentModule, in BeginSourceFileAction()
294 << CI.getLangOpts().CurrentModule << Filename; in BeginSourceFileAction()
368 HS.getModuleFileName(CI.getLangOpts().CurrentModule, in ComputeASTConsumerArguments()
H A DCompilerInstance.cpp888 Invocation->getLangOpts()->CurrentModule = Module->getTopLevelModuleName(); in compileModuleImpl()
1343 if (LastModuleImportResult && ModuleName != getLangOpts().CurrentModule && in loadModule()
1358 } else if (ModuleName == getLangOpts().CurrentModule || in loadModule()
1548 if (ModuleName != getLangOpts().CurrentModule) { in loadModule()
1597 bool IsInModuleIncludes = !getLangOpts().CurrentModule.empty() && in loadModule()
H A DCompilerInvocation.cpp1563 Opts.CurrentModule = Args.getLastArgValue(OPT_fmodule_name); in ParseLangArgs()
1569 if (!Opts.CurrentModule.empty() && !Opts.ImplementationOfModule.empty() && in ParseLangArgs()
1570 Opts.CurrentModule != Opts.ImplementationOfModule) { in ParseLangArgs()
1572 << Opts.CurrentModule << Opts.ImplementationOfModule; in ParseLangArgs()
H A DASTUnit.cpp2822 return isMainFileAST() && !ASTFileLangOpts.CurrentModule.empty(); in isModuleFile()
/minix3/external/bsd/llvm/dist/clang/include/clang/Basic/
H A DLangOptions.h88 std::string CurrentModule; variable
/minix3/external/bsd/llvm/dist/clang/lib/Lex/
H A DPPMacroExpansion.cpp132 if (!LangOpts.CurrentModule.empty()) in RegisterBuiltinMacros()
1232 = Tok.getIdentifierInfo()->getName() == PP.getLangOpts().CurrentModule; in EvaluateBuildingModule()
1527 OS << getLangOpts().CurrentModule; in ExpandBuiltinMacro()
1528 IdentifierInfo *ModuleII = getIdentifierInfo(getLangOpts().CurrentModule); in ExpandBuiltinMacro()
H A DPreprocessor.cpp466 if (getLangOpts().CurrentModule.empty()) in getCurrentModule()
469 return getHeaderSearchInfo().lookupModule(getLangOpts().CurrentModule); in getCurrentModule()
H A DModuleMap.cpp552 if (LangOpts.CurrentModule == Name) { in findOrCreateModule()
558 if (!LangOpts.CurrentModule.empty() && !CompilingModule && in findOrCreateModule()
559 Name == LangOpts.CurrentModule) { in findOrCreateModule()
684 if (LangOpts.CurrentModule == ModuleName) { in inferFrameworkModule()
H A DPPDirectives.cpp1674 = Path[0].first->getName() == getLangOpts().CurrentModule; in HandleIncludeDirective()
1774 if (getLangOpts().Modules && !getLangOpts().CurrentModule.empty()) { in HandleIncludeDirective()
/minix3/external/bsd/llvm/dist/clang/lib/Sema/
H A DSema.cpp718 if (Module *CurrentModule = PP.getCurrentModule()) { in ActOnEndOfTranslationUnit() local
722 Stack.push_back(CurrentModule); in ActOnEndOfTranslationUnit()
H A DSemaDeclObjC.cpp2241 if (getLangOpts().Modules && !getLangOpts().CurrentModule.empty()) in addMethodToGlobalList()
H A DSemaDecl.cpp13812 if (Mod->getTopLevelModuleName() == getLangOpts().CurrentModule) in ActOnModuleImport()
13814 << Mod->getFullModuleName() << getLangOpts().CurrentModule; in ActOnModuleImport()
/minix3/external/bsd/llvm/dist/clang/lib/CodeGen/
H A DCodeGenModule.cpp3289 if (getLangOpts().CurrentModule.empty() || in EmitTopLevelDecl()
3290 Owner->getTopLevelModule()->Name == getLangOpts().CurrentModule) in EmitTopLevelDecl()