| /freebsd/contrib/llvm-project/llvm/lib/ToolDrivers/llvm-dlltool/ |
| H A D | DlltoolDriver.cpp | 103 StringRef ProgName = llvm::sys::path::stem(Argv0); in getPrefix() local 107 ProgName = ProgName.rtrim("0123456789.-"); in getPrefix() 108 if (!ProgName.consume_back_insensitive("dlltool")) in getPrefix() 110 ProgName.consume_back_insensitive("llvm-"); in getPrefix() 111 ProgName.consume_back_insensitive("-"); in getPrefix() 112 return ProgName.str(); in getPrefix()
|
| /freebsd/contrib/llvm-project/llvm/lib/LineEditor/ |
| H A D | LineEditor.cpp | 24 std::string LineEditor::getDefaultHistoryPath(StringRef ProgName) { in getDefaultHistoryPath() argument 27 sys::path::append(Path, "." + ProgName + "-history"); in getDefaultHistoryPath() 193 LineEditor::LineEditor(StringRef ProgName, StringRef HistoryPath, FILE *In, in LineEditor() argument 195 : Prompt((ProgName + "> ").str()), HistoryPath(std::string(HistoryPath)), in LineEditor() 198 this->HistoryPath = getDefaultHistoryPath(ProgName); in LineEditor() 206 Data->EL = ::el_init(ProgName.str().c_str(), In, Out, Err); in LineEditor() 281 LineEditor::LineEditor(StringRef ProgName, StringRef HistoryPath, FILE *In, in LineEditor() argument 283 : Prompt((ProgName + "> ").str()), Data(new InternalData) { in LineEditor()
|
| /freebsd/contrib/llvm-project/llvm/tools/llvm-mc/ |
| H A D | llvm-mc.cpp | 226 static const Target *GetTarget(const char *ProgName) { in GetTarget() argument 237 WithColor::error(errs(), ProgName) << Error; in GetTarget() 314 static int AssembleInput(const char *ProgName, const Target *TheTarget, in AssembleInput() argument 324 WithColor::error(errs(), ProgName) in AssembleInput() 366 const char *ProgName = argv[0]; in main() local 367 const Target *TheTarget = GetTarget(ProgName); in main() 377 WithColor::error(errs(), ProgName) in main() 402 WithColor::error(errs(), ProgName) in main() 434 errs() << ProgName << ": Dwarf version " << DwarfVersion in main() 442 errs() << ProgName in main() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Driver/ |
| H A D | ToolChain.cpp | 325 static const DriverSuffix *FindDriverSuffix(StringRef ProgName, size_t &Pos) { in FindDriverSuffix() argument 348 if (ProgName.ends_with(Suffix)) { in FindDriverSuffix() 349 Pos = ProgName.size() - Suffix.size(); in FindDriverSuffix() 359 std::string ProgName = std::string(llvm::sys::path::filename(Argv0)); in normalizeProgramName() local 362 std::transform(ProgName.begin(), ProgName.end(), ProgName.begin(), in normalizeProgramName() 365 return ProgName; in normalizeProgramName() 368 static const DriverSuffix *parseDriverSuffix(StringRef ProgName, size_t &Pos) { in parseDriverSuffix() argument 376 const DriverSuffix *DS = FindDriverSuffix(ProgName, Pos); in parseDriverSuffix() 378 if (!DS && ProgName.ends_with(".exe")) { in parseDriverSuffix() 381 ProgName = ProgName.drop_back(StringRef(".exe").size()); in parseDriverSuffix() [all …]
|
| H A D | Driver.cpp | 2258 StringRef ProgName = A->getValue(); in HandleImmediateArgs() local 2261 if (! ProgName.empty()) in HandleImmediateArgs() 2262 llvm::outs() << GetProgramPath(ProgName, TC); in HandleImmediateArgs() 6726 llvm::StringRef clang::driver::getDriverMode(StringRef ProgName, in getDriverMode() 6737 Opt = ToolChain::getTargetAndModeFromProgramName(ProgName).DriverMode; 6748 // are two ways to put clang in CL compatibility mode: ProgName is either in expandResponseFiles() 6721 getDriverMode(StringRef ProgName,ArrayRef<const char * > Args) getDriverMode() argument
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/orc/tests/tools/ |
| H A D | orc-rt-executor.cpp | 20 void printHelp(std::string_view ProgName, std::ostream &OS) { in printHelp() argument 21 OS << "usage: " << ProgName << " [help] [<mode>] <program arguments>...\n" in printHelp()
|
| /freebsd/contrib/kyua/admin/ |
| H A D | check-style.sh | 34 ProgName="${0##*/}" 42 echo "${ProgName}:" "${@}" 1>&2
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/LineEditor/ |
| H A D | LineEditor.h | 33 LineEditor(StringRef ProgName, StringRef HistoryPath = "", FILE *In = stdin, 45 static std::string getDefaultHistoryPath(StringRef ProgName);
|
| /freebsd/contrib/llvm-project/clang/tools/driver/ |
| H A D | driver.cpp | 243 const char *ProgName = in clang_main() local 247 IsClangCL(getDriverMode(ProgName, llvm::ArrayRef(Args).slice(1))); in clang_main() 321 FixupDiagPrefixExeName(DiagClient, ProgName); in clang_main() 338 auto TargetAndMode = ToolChain::getTargetAndModeFromProgramName(ProgName); in clang_main()
|
| /freebsd/contrib/llvm-project/llvm/lib/TableGen/ |
| H A D | Main.cpp | 70 static int reportError(const char *ProgName, Twine Msg) { in reportError() argument 71 errs() << ProgName << ": " << Msg; in reportError()
|
| /freebsd/contrib/llvm-project/llvm/lib/Support/ |
| H A D | SourceMgr.cpp | 484 void SMDiagnostic::print(const char *ProgName, raw_ostream &OS, bool ShowColors, in print() argument 491 if (ProgName && ProgName[0]) in print() 492 S << ProgName << ": "; in print()
|
| /freebsd/contrib/llvm-project/llvm/tools/llvm-mca/ |
| H A D | llvm-mca.cpp | 276 const Target *getTarget(const char *ProgName) { in getTarget() argument 286 errs() << ProgName << ": " << Error; in getTarget() 374 const char *ProgName = argv[0]; in main() local 375 const Target *TheTarget = getTarget(ProgName); in main()
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/fuzzer/ |
| H A D | FuzzerDriver.cpp | 90 static std::string *ProgName; variable 94 auto Prog = ProgName->c_str(); in PrintHelp() 656 ProgName = new std::string(Args[0]); in FuzzerDriver() 657 if (Argv0 != *ProgName) { in FuzzerDriver() 857 Printf("%s: Running %zd inputs %d time(s) each.\n", ProgName->c_str(), in FuzzerDriver()
|
| /freebsd/contrib/llvm-project/llvm/tools/lli/ |
| H A D | lli.cpp | 409 [[noreturn]] static void reportError(SMDiagnostic Err, const char *ProgName) { in reportError() argument 410 Err.print(ProgName, errs()); in reportError() 415 int runOrcJIT(const char *ProgName); 921 int runOrcJIT(const char *ProgName) { in runOrcJIT() argument
|
| /freebsd/contrib/llvm-project/llvm/tools/llvm-profdata/ |
| H A D | llvm-profdata.cpp | 1673 static int merge_main(StringRef ProgName) { in merge_main() argument 1686 exitWithError("no input files specified. See " + ProgName + " merge -help"); in merge_main() 3249 static int show_main(StringRef ProgName) { in show_main() argument 3256 errs() << ProgName in show_main() 3351 StringRef ProgName(sys::path::filename(argv[0])); in llvm_profdata_main() local 3354 errs() << ProgName in llvm_profdata_main() 3362 return show_main(ProgName); in llvm_profdata_main() 3371 return merge_main(ProgName); in llvm_profdata_main() 3373 errs() << ProgName in llvm_profdata_main()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
| H A D | SourceMgr.h | 319 void print(const char *ProgName, raw_ostream &S, bool ShowColors = true,
|
| /freebsd/contrib/llvm-project/clang/include/clang/Driver/ |
| H A D | Driver.h | 833 llvm::StringRef getDriverMode(StringRef ProgName, ArrayRef<const char *> Args);
|
| H A D | ToolChain.h | 346 static ParsedClangName getTargetAndModeFromProgramName(StringRef ProgName);
|
| /freebsd/contrib/llvm-project/llvm/tools/llc/ |
| H A D | llc.cpp | 260 const char *ProgName) { in GetOutputStream() argument
|