Home
last modified time | relevance | path

Searched refs:MainFileName (Results 1 – 25 of 31) sorted by relevance

12

/external/llvm-project/clang/lib/CodeGen/
DObjectFilePCHContainerOperations.cpp44 const std::string MainFileName; member in __anon26f05d670111::PCHContainerGenerator
136 PCHContainerGenerator(CompilerInstance &CI, const std::string &MainFileName, in PCHContainerGenerator() argument
140 : Diags(CI.getDiagnostics()), MainFileName(MainFileName), in PCHContainerGenerator()
153 CodeGenOpts.MainFileName = in PCHContainerGenerator()
154 LangOpts.CurrentModule.empty() ? MainFileName : LangOpts.CurrentModule; in PCHContainerGenerator()
168 M.reset(new llvm::Module(MainFileName, *VMContext)); in Initialize()
175 StringRef ModuleName = llvm::sys::path::filename(MainFileName); in Initialize()
320 CompilerInstance &CI, const std::string &MainFileName, in CreatePCHContainerGenerator() argument
325 CI, MainFileName, OutputFileName, std::move(OS), Buffer); in CreatePCHContainerGenerator()
DModuleBuilder.cpp70 if (ModuleName == "-" && !CGO.MainFileName.empty()) in ExpandModuleName()
71 return CGO.MainFileName; in ExpandModuleName()
DCGDebugInfo.cpp535 std::string MainFileName = CGM.getCodeGenOpts().MainFileName; in CreateCompileUnit() local
536 if (MainFileName.empty()) in CreateCompileUnit()
537 MainFileName = "<stdin>"; in CreateCompileUnit()
546 if (!llvm::sys::path::is_absolute(MainFileName)) { in CreateCompileUnit()
548 llvm::sys::path::append(MainFileDirSS, MainFileName); in CreateCompileUnit()
549 MainFileName = in CreateCompileUnit()
556 if (MainFile->getName() == MainFileName && in CreateCompileUnit()
560 MainFileName = CGM.getModule().getName().str(); in CreateCompileUnit()
622 remapDIPath(MainFileName), remapDIPath(getCurrentDirname()), CSInfo, in CreateCompileUnit()
/external/clang/lib/CodeGen/
DObjectFilePCHContainerOperations.cpp46 const std::string MainFileName; member in __anond268d5990111::PCHContainerGenerator
139 PCHContainerGenerator(CompilerInstance &CI, const std::string &MainFileName, in PCHContainerGenerator() argument
143 : Diags(CI.getDiagnostics()), MainFileName(MainFileName), in PCHContainerGenerator()
166 M.reset(new llvm::Module(MainFileName, *VMContext)); in Initialize()
173 StringRef ModuleName = llvm::sys::path::filename(MainFileName); in Initialize()
309 CompilerInstance &CI, const std::string &MainFileName, in CreatePCHContainerGenerator() argument
312 return llvm::make_unique<PCHContainerGenerator>(CI, MainFileName, in CreatePCHContainerGenerator()
DCGDebugInfo.cpp398 std::string MainFileName = CGM.getCodeGenOpts().MainFileName; in CreateCompileUnit() local
399 if (MainFileName.empty()) in CreateCompileUnit()
400 MainFileName = "<stdin>"; in CreateCompileUnit()
411 llvm::sys::path::append(MainFileDirSS, MainFileName); in CreateCompileUnit()
412 MainFileName = MainFileDirSS.str(); in CreateCompileUnit()
458 LangTag, remapDIPath(MainFileName), remapDIPath(getCurrentDirname()), in CreateCompileUnit()
/external/clang/include/clang/Frontend/
DPCHContainerOperations.h50 CompilerInstance &CI, const std::string &MainFileName,
77 CompilerInstance &CI, const std::string &MainFileName,
DCodeGenOptions.h131 std::string MainFileName; variable
/external/llvm-project/clang/include/clang/Serialization/
DPCHContainerOperations.h48 const std::string &MainFileName,
75 const std::string &MainFileName,
/external/clang/include/clang/CodeGen/
DObjectFilePCHContainerOperations.h26 CompilerInstance &CI, const std::string &MainFileName,
/external/llvm-project/clang/include/clang/CodeGen/
DObjectFilePCHContainerOperations.h26 const std::string &MainFileName,
/external/clang/tools/driver/
Dcc1as_main.cpp94 std::string MainFileName; member
207 Opts.MainFileName = Args.getLastArgValue(OPT_main_file_name); in CreateFromArgs()
353 if (!Opts.MainFileName.empty()) in ExecuteAssembler()
354 Ctx.setMainFileName(StringRef(Opts.MainFileName)); in ExecuteAssembler()
/external/llvm-project/clang/tools/driver/
Dcc1as_main.cpp101 std::string MainFileName; member
241 Opts.MainFileName = std::string(Args.getLastArgValue(OPT_main_file_name)); in CreateFromArgs()
418 if (!Opts.MainFileName.empty()) in ExecuteAssembler()
419 Ctx.setMainFileName(StringRef(Opts.MainFileName)); in ExecuteAssembler()
/external/llvm-project/clang/lib/Serialization/
DPCHContainerOperations.cpp54 CompilerInstance &CI, const std::string &MainFileName, in CreatePCHContainerGenerator() argument
/external/clang/lib/Frontend/
DPCHContainerOperations.cpp55 CompilerInstance &CI, const std::string &MainFileName, in CreatePCHContainerGenerator() argument
/external/llvm-project/clang-tools-extra/clangd/refactor/tweaks/
DDefineOutline.cpp402 auto MainFileName = in apply() local
404 if (!MainFileName) in apply()
407 auto CCFile = getSourceFile(*MainFileName, Sel); in apply()
/external/llvm/include/llvm/MC/
DMCContext.h132 std::string MainFileName; variable
439 const std::string &getMainFileName() const { return MainFileName; } in getMainFileName()
442 void setMainFileName(StringRef S) { MainFileName = S; } in setMainFileName()
/external/llvm-project/llvm/tools/llvm-mc/
Dllvm-mc.cpp162 MainFileName("main-file-name", variable
436 if (!MainFileName.empty()) in main()
437 Ctx.setMainFileName(MainFileName); in main()
/external/llvm/tools/llvm-mc/
Dllvm-mc.cpp167 MainFileName("main-file-name", variable
469 if (!MainFileName.empty()) in main()
470 Ctx.setMainFileName(MainFileName); in main()
/external/llvm-project/llvm/include/llvm/MC/
DMCContext.h153 std::string MainFileName; variable
596 const std::string &getMainFileName() const { return MainFileName; } in getMainFileName()
599 void setMainFileName(StringRef S) { MainFileName = std::string(S); } in setMainFileName()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/MC/
DMCContext.h150 std::string MainFileName; variable
541 const std::string &getMainFileName() const { return MainFileName; } in getMainFileName()
544 void setMainFileName(StringRef S) { MainFileName = S; } in setMainFileName()
/external/llvm-project/clang-tools-extra/clangd/unittests/
DPreambleTests.cpp52 llvm::StringRef MainFileName = "main.cpp") { in collectPatchedIncludes() argument
55 TU.Filename = MainFileName.str(); in collectPatchedIncludes()
/external/llvm-project/clang/include/clang/Basic/
DCodeGenOptions.h202 std::string MainFileName; variable
/external/llvm/lib/MC/
DMCContext.cpp58 MainFileName = in MCContext()
87 MainFileName.clear(); in reset()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/MC/
DMCContext.cpp71 MainFileName = in MCContext()
101 MainFileName.clear(); in reset()
/external/llvm-project/llvm/lib/MC/
DMCContext.cpp71 MainFileName = std::string(SrcMgr->getMemoryBuffer(SrcMgr->getMainFileID()) in MCContext()
102 MainFileName.clear(); in reset()

12