Home
last modified time | relevance | path

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

/external/clang/lib/Serialization/
DModuleManager.cpp321 ModuleFile *CurrentModule = Queue[QueueStart++]; in visit() local
322 VisitOrder.push_back(CurrentModule); in visit()
327 M = CurrentModule->Imports.begin(), in visit()
328 MEnd = CurrentModule->Imports.end(); in visit()
362 ModuleFile *CurrentModule = VisitOrder[I]; in visit() local
364 if (State->VisitNumber[CurrentModule->Index] == VisitNumber) in visit()
368 assert(State->VisitNumber[CurrentModule->Index] == VisitNumber - 1); in visit()
369 State->VisitNumber[CurrentModule->Index] = VisitNumber; in visit()
370 if (!Visitor(*CurrentModule, UserData)) in visit()
376 ModuleFile *NextModule = CurrentModule; in visit()
DASTReader.cpp4472 Module *CurrentModule = nullptr; in ReadSubmoduleBlock() local
4502 if (!CurrentModule && Kind != SUBMODULE_METADATA && in ReadSubmoduleBlock()
4535 CurrentModule = ModMap.findOrCreateModule(Name, ParentModule, IsFramework, in ReadSubmoduleBlock()
4549 if (const FileEntry *CurFile = CurrentModule->getASTFile()) { in ReadSubmoduleBlock()
4553 << CurrentModule->getTopLevelModuleName() in ReadSubmoduleBlock()
4561 CurrentModule->setASTFile(F.File); in ReadSubmoduleBlock()
4564 CurrentModule->IsFromModuleFile = true; in ReadSubmoduleBlock()
4565 CurrentModule->IsSystem = IsSystem || CurrentModule->IsSystem; in ReadSubmoduleBlock()
4566 CurrentModule->IsExternC = IsExternC; in ReadSubmoduleBlock()
4567 CurrentModule->InferSubmodules = InferSubmodules; in ReadSubmoduleBlock()
[all …]
DASTWriter.cpp1269 Record.push_back(LangOpts.CurrentModule.size()); in WriteControlBlock()
1270 Record.append(LangOpts.CurrentModule.begin(), LangOpts.CurrentModule.end()); in WriteControlBlock()
/external/llvm/examples/Kaleidoscope/MCJIT/complete/
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 …]
/external/clang/lib/Basic/
DLangOptions.cpp35 CurrentModule.clear(); in resetNonModularOptions()
/external/clang/lib/Frontend/
DFrontendActions.cpp272 if (CI.getLangOpts().CurrentModule.empty()) { in BeginSourceFileAction()
287 SourceMgr.pushModuleBuildStack(CI.getLangOpts().CurrentModule, in BeginSourceFileAction()
291 Module = HS.lookupModule(CI.getLangOpts().CurrentModule, in BeginSourceFileAction()
295 << CI.getLangOpts().CurrentModule << Filename; in BeginSourceFileAction()
367 HS.getModuleFileName(CI.getLangOpts().CurrentModule, in ComputeASTConsumerArguments()
DCompilerInstance.cpp891 Invocation->getLangOpts()->CurrentModule = Module->getTopLevelModuleName(); in compileModuleImpl()
1385 if (LastModuleImportResult && ModuleName != getLangOpts().CurrentModule && in loadModule()
1400 } else if (ModuleName == getLangOpts().CurrentModule || in loadModule()
1596 if (ModuleName != getLangOpts().CurrentModule) { in loadModule()
1645 bool IsInModuleIncludes = !getLangOpts().CurrentModule.empty() && in loadModule()
DCompilerInvocation.cpp1568 Opts.CurrentModule = Args.getLastArgValue(OPT_fmodule_name); in ParseLangArgs()
1577 if (!Opts.CurrentModule.empty() && !Opts.ImplementationOfModule.empty() && in ParseLangArgs()
1578 Opts.CurrentModule != Opts.ImplementationOfModule) { in ParseLangArgs()
1580 << Opts.CurrentModule << Opts.ImplementationOfModule; in ParseLangArgs()
DASTUnit.cpp2797 return isMainFileAST() && !ASTFileLangOpts.CurrentModule.empty(); in isModuleFile()
/external/clang/include/clang/Basic/
DLangOptions.h89 std::string CurrentModule; variable
/external/clang/lib/Lex/
DPPMacroExpansion.cpp132 if (!LangOpts.CurrentModule.empty()) in RegisterBuiltinMacros()
1237 = Tok.getIdentifierInfo()->getName() == PP.getLangOpts().CurrentModule; in EvaluateBuildingModule()
1534 OS << getLangOpts().CurrentModule; in ExpandBuiltinMacro()
1535 IdentifierInfo *ModuleII = getIdentifierInfo(getLangOpts().CurrentModule); in ExpandBuiltinMacro()
DPreprocessor.cpp466 if (getLangOpts().CurrentModule.empty()) in getCurrentModule()
469 return getHeaderSearchInfo().lookupModule(getLangOpts().CurrentModule); in getCurrentModule()
DModuleMap.cpp567 if (LangOpts.CurrentModule == Name) { in findOrCreateModule()
573 if (!LangOpts.CurrentModule.empty() && !CompilingModule && in findOrCreateModule()
574 Name == LangOpts.CurrentModule) { in findOrCreateModule()
699 if (LangOpts.CurrentModule == ModuleName) { in inferFrameworkModule()
DPPDirectives.cpp1674 = Path[0].first->getName() == getLangOpts().CurrentModule; in HandleIncludeDirective()
1774 if (getLangOpts().Modules && !getLangOpts().CurrentModule.empty()) { in HandleIncludeDirective()
/external/clang/lib/Sema/
DSema.cpp707 if (Module *CurrentModule = PP.getCurrentModule()) { in ActOnEndOfTranslationUnit() local
711 Stack.push_back(CurrentModule); in ActOnEndOfTranslationUnit()
DSemaDeclObjC.cpp2240 if (getLangOpts().Modules && !getLangOpts().CurrentModule.empty()) in addMethodToGlobalList()
DSemaDecl.cpp14018 if (Mod->getTopLevelModuleName() == getLangOpts().CurrentModule) in ActOnModuleImport()
14020 << Mod->getFullModuleName() << getLangOpts().CurrentModule; in ActOnModuleImport()
/external/clang/lib/CodeGen/
DCodeGenModule.cpp3367 if (getLangOpts().CurrentModule.empty() || in EmitTopLevelDecl()
3368 Owner->getTopLevelModule()->Name == getLangOpts().CurrentModule) in EmitTopLevelDecl()