Home
last modified time | relevance | path

Searched refs:Argv0 (Results 1 – 25 of 26) sorted by relevance

12

/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DSignals.cpp242 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 DToolRunner.h51 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 DToolRunner.cpp203 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 DSupportHelpers.cpp15 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 Ddriver.cpp62 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 Dcc1_main.cpp217 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 Dcc1gen_reproducer_main.cpp147 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 Dcc1as_main.cpp654 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 DCompilerInvocation.h282 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 Dllvm-link.cpp164 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 DMCTargetOptions.h91 std::string Argv0; variable
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DSignals.h62 LLVM_ABI void PrintStackTraceOnErrorSignal(StringRef Argv0,
/freebsd/contrib/llvm-project/llvm/lib/ToolDrivers/llvm-dlltool/
H A DDlltoolDriver.cpp109 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 DCompilationDatabase.cpp257 std::string Argv0 = GetClangToolCommand(); in stripPositionalArgs() local
258 Args.insert(Args.begin(), Argv0.c_str()); in stripPositionalArgs()
H A DTooling.cpp502 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 DSignals.inc213 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 DSignals.inc165 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 DCompilerInvocation.cpp790 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 DSupportHelpers.h109 SmallString<128> getInputFileDirectory(const char *Argv0);
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DCodeGenOptions.h487 const char *Argv0 = nullptr; variable
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DBackendUtil.cpp523 Options.MCOptions.Argv0 = CodeGenOpts.Argv0 ? CodeGenOpts.Argv0 : ""; in initTargetOptions()
/freebsd/contrib/llvm-project/compiler-rt/lib/fuzzer/
H A DFuzzerDriver.cpp649 std::string Argv0((*argv)[0]); in FuzzerDriver() local
658 if (Argv0 != *ProgName) { in FuzzerDriver()
/freebsd/contrib/llvm-project/clang/lib/Driver/
H A DToolChain.cpp446 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 Dllvm-objdump.cpp104 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 DCodeViewDebug.cpp960 getStringIdTypeIdx(TypeTable, Asm->TM.Options.MCOptions.Argv0); in emitBuildInfo()

12