| /freebsd/contrib/llvm-project/llvm/lib/Support/ |
| H A D | Signals.cpp | 242 ErrorOr<std::string> getLLVMSymbolizerPath(StringRef Argv0 = {}) { in getLLVMSymbolizerPath() argument 246 } else if (!Argv0.empty()) { 247 StringRef Parent = llvm::sys::path::parent_path(Argv0); 259 static bool printSymbolizedStackTrace(StringRef Argv0, void **StackTrace, in printSymbolizedStackTrace() argument 265 if (Argv0.contains("llvm-symbolizer")) in printSymbolizedStackTrace() 272 ErrorOr<std::string> LLVMSymbolizerPathOrErr = getLLVMSymbolizerPath(Argv0); in printSymbolizedStackTrace() 280 sys::fs::exists(Argv0) ? std::string(Argv0) in printSymbolizedStackTrace() 335 static bool printMarkupStackTrace(StringRef Argv0, void **StackTrace, int Depth, in printMarkupStackTrace() argument 342 sys::fs::exists(Argv0) ? std::string(Argv0) in printMarkupStackTrace()
|
| /freebsd/contrib/llvm-project/llvm/tools/bugpoint/ |
| H A D | ToolRunner.h | 51 static CC *create(const char *Argv0, std::string &Message, 86 static LLC *createLLC(const char *Argv0, std::string &Message, 93 createLLI(const char *Argv0, std::string &Message, 97 createJIT(const char *Argv0, std::string &Message, 101 createCustomCompiler(const char *Argv0, std::string &Message, 105 createCustomExecutor(const char *Argv0, std::string &Message, 186 const char *Argv0, void *MainAddr);
|
| H A D | ToolRunner.cpp | 203 const char *Argv0, in FindProgramByName() argument 208 std::string Main = sys::fs::getMainExecutable(Argv0, MainAddr); in FindProgramByName() 219 AbstractInterpreter::createLLI(const char *Argv0, std::string &Message, in createLLI() argument 222 FindProgramByName("lli", Argv0, (void *)(intptr_t)&createLLI)) { in createLLI() 347 static void lexCommand(const char *Argv0, std::string &Message, in lexCommand() argument 382 auto Path = FindProgramByName(Command, Argv0, (void *)(intptr_t)&lexCommand); in lexCommand() 396 const char *Argv0, std::string &Message, in createCustomCompiler() argument 401 lexCommand(Argv0, Message, CompileCommandLine, CmdPath, Args); in createCustomCompiler() 411 AbstractInterpreter::createCustomExecutor(const char *Argv0, in createCustomExecutor() argument 417 lexCommand(Argv0, Message, ExecCommandLine, CmdPath, Args); in createCustomExecutor() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Testing/Support/ |
| H A D | SupportHelpers.cpp | 15 static std::pair<bool, SmallString<128>> findSrcDirMap(StringRef Argv0) { in findSrcDirMap() argument 16 SmallString<128> BaseDir = llvm::sys::path::parent_path(Argv0); in findSrcDirMap() 35 SmallString<128> llvm::unittest::getInputFileDirectory(const char *Argv0) { in getInputFileDirectory() argument 38 std::tie(Found, InputFilePath) = findSrcDirMap(Argv0); in getInputFileDirectory()
|
| /freebsd/contrib/llvm-project/clang/tools/driver/ |
| H A D | driver.cpp | 62 std::string GetExecutablePath(const char *Argv0, bool CanonicalPrefixes) { in GetExecutablePath() argument 64 SmallString<128> ExecutablePath(Argv0); in GetExecutablePath() 76 return llvm::sys::fs::getMainExecutable(Argv0, P); in GetExecutablePath() 83 extern int cc1_main(ArrayRef<const char *> Argv, const char *Argv0, 85 extern int cc1as_main(ArrayRef<const char *> Argv, const char *Argv0, 88 const char *Argv0, void *MainAddr,
|
| H A D | cc1_main.cpp | 217 int cc1_main(ArrayRef<const char *> Argv, const char *Argv0, void *MainAddr) { in cc1_main() argument 246 CompilerInvocation::CreateFromArgs(*Invocation, Argv, Diags, Argv0); in cc1_main() 253 Clang->getFrontendOpts().TimeTraceGranularity, Argv0, in cc1_main() 272 CompilerInvocation::GetResourcesPath(Argv0, MainAddr); in cc1_main()
|
| H A D | cc1gen_reproducer_main.cpp | 147 std::string GetExecutablePath(const char *Argv0, bool CanonicalPrefixes); 163 int cc1gen_reproducer_main(ArrayRef<const char *> Argv, const char *Argv0, in cc1gen_reproducer_main() argument 189 std::string Path = GetExecutablePath(Argv0, /*CanonicalPrefixes=*/true); in cc1gen_reproducer_main()
|
| H A D | cc1as_main.cpp | 654 int cc1as_main(ArrayRef<const char *> Argv, const char *Argv0, void *MainAddr) { in cc1as_main() argument
|
| /freebsd/contrib/llvm-project/clang/include/clang/Frontend/ |
| H A D | CompilerInvocation.h | 282 const char *Argv0 = nullptr); 292 static std::string GetResourcesPath(const char *Argv0, void *MainAddr); 316 const char *Argv0 = nullptr); 329 DiagnosticsEngine &Diags, const char *Argv0);
|
| /freebsd/contrib/llvm-project/llvm/tools/llvm-link/ |
| H A D | llvm-link.cpp | 164 static std::unique_ptr<Module> loadArFile(const char *Argv0, in loadArFile() argument 184 errs() << Argv0 << ": "; in loadArFile() 196 errs() << Argv0 << ": "; in loadArFile() 209 errs() << Argv0 << ": "; in loadArFile() 223 errs() << Argv0 << ": "; in loadArFile()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/MC/ |
| H A D | MCTargetOptions.h | 91 std::string Argv0; variable
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
| H A D | Signals.h | 62 LLVM_ABI void PrintStackTraceOnErrorSignal(StringRef Argv0,
|
| /freebsd/contrib/llvm-project/llvm/lib/ToolDrivers/llvm-dlltool/ |
| H A D | DlltoolDriver.cpp | 109 std::optional<std::string> getPrefix(StringRef Argv0) { in getPrefix() argument 110 StringRef ProgName = llvm::sys::path::stem(Argv0); in getPrefix()
|
| /freebsd/contrib/llvm-project/clang/lib/Tooling/ |
| H A D | CompilationDatabase.cpp | 257 std::string Argv0 = GetClangToolCommand(); in stripPositionalArgs() local 258 Args.insert(Args.begin(), Argv0.c_str()); in stripPositionalArgs()
|
| H A D | Tooling.cpp | 502 static void injectResourceDir(CommandLineArguments &Args, const char *Argv0, in injectResourceDir() argument 511 ("-resource-dir=" + CompilerInvocation::GetResourcesPath(Argv0, MainAddr)) in injectResourceDir()
|
| /freebsd/contrib/llvm-project/llvm/lib/Support/Unix/ |
| H A D | Signals.inc | 213 static StringRef Argv0; 848 if (printMarkupStackTrace(Argv0, StackTrace, Depth, OS)) 850 if (printSymbolizedStackTrace(Argv0, StackTrace, Depth, OS)) 924 void llvm::sys::PrintStackTraceOnErrorSignal(StringRef Argv0, 926 ::Argv0 = Argv0;
|
| /freebsd/contrib/llvm-project/llvm/lib/Support/Windows/ |
| H A D | Signals.inc | 165 static StringRef Argv0; 207 return printSymbolizedStackTrace(Argv0, &StackTrace[0], Depth, OS); 469 void sys::PrintStackTraceOnErrorSignal(StringRef Argv0, 471 ::Argv0 = Argv0;
|
| /freebsd/contrib/llvm-project/clang/lib/Frontend/ |
| H A D | CompilerInvocation.cpp | 790 DiagnosticsEngine &Diags, const char *Argv0, in RoundTrip() argument 814 return Parse(RealInvocation, CommandLineArgs, Diags, Argv0); in RoundTrip() 834 if (!Parse(DummyInvocation, CommandLineArgs, DummyDiags, Argv0) || in RoundTrip() 841 auto Success = Parse(RealInvocation, CommandLineArgs, Diags, Argv0); in RoundTrip() 870 bool Success2 = Parse(RealInvocation, GeneratedArgs, Diags, Argv0); in RoundTrip() 921 const char *Argv0) { in checkCC1RoundTrip() argument 925 DiagnosticsEngine &Diags, const char *Argv0) { in checkCC1RoundTrip() argument 926 return CreateFromArgsImpl(Invocation, CommandLineArgs, Diags, Argv0); in checkCC1RoundTrip() 933 DummyInvocation1, DummyInvocation2, Args, Diags, Argv0, in checkCC1RoundTrip() 3302 std::string CompilerInvocation::GetResourcesPath(const char *Argv0, in GetResourcesPath() argument [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Testing/Support/ |
| H A D | SupportHelpers.h | 109 SmallString<128> getInputFileDirectory(const char *Argv0);
|
| /freebsd/contrib/llvm-project/clang/include/clang/Basic/ |
| H A D | CodeGenOptions.h | 487 const char *Argv0 = nullptr; variable
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | BackendUtil.cpp | 523 Options.MCOptions.Argv0 = CodeGenOpts.Argv0 ? CodeGenOpts.Argv0 : ""; in initTargetOptions()
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/fuzzer/ |
| H A D | FuzzerDriver.cpp | 649 std::string Argv0((*argv)[0]); in FuzzerDriver() local 658 if (Argv0 != *ProgName) { in FuzzerDriver()
|
| /freebsd/contrib/llvm-project/clang/lib/Driver/ |
| H A D | ToolChain.cpp | 446 static std::string normalizeProgramName(llvm::StringRef Argv0) { in normalizeProgramName() 447 std::string ProgName = std::string(llvm::sys::path::filename(Argv0)); in normalizeProgramName() 442 normalizeProgramName(llvm::StringRef Argv0) normalizeProgramName() argument
|
| /freebsd/contrib/llvm-project/llvm/tools/llvm-objdump/ |
| H A D | llvm-objdump.cpp | 104 void printHelp(StringRef Argv0, bool ShowHidden = false) const { in printHelp() argument 105 Argv0 = sys::path::filename(Argv0); in printHelp() 106 opt::GenericOptTable::printHelp(outs(), (Argv0 + Usage).str().c_str(), in printHelp()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/ |
| H A D | CodeViewDebug.cpp | 960 getStringIdTypeIdx(TypeTable, Asm->TM.Options.MCOptions.Argv0); in emitBuildInfo()
|