Home
last modified time | relevance | path

Searched refs:ProgName (Results 1 – 17 of 17) sorted by relevance

/freebsd-12.1/contrib/llvm/tools/clang/lib/Driver/
H A DToolChain.cpp158 if (ProgName.endswith(Suffix)) { in FindDriverSuffix()
159 Pos = ProgName.size() - Suffix.size(); in FindDriverSuffix()
169 std::string ProgName = llvm::sys::path::stem(Argv0); in normalizeProgramName() local
172 std::transform(ProgName.begin(), ProgName.end(), ProgName.begin(), ::tolower); in normalizeProgramName()
174 return ProgName; in normalizeProgramName()
190 ProgName = ProgName.rtrim("0123456789."); in parseDriverSuffix()
191 DS = FindDriverSuffix(ProgName, Pos); in parseDriverSuffix()
197 ProgName = ProgName.slice(0, ProgName.rfind('-')); in parseDriverSuffix()
198 DS = FindDriverSuffix(ProgName, Pos); in parseDriverSuffix()
205 std::string ProgName = normalizeProgramName(PN); in getTargetAndModeFromProgramName() local
[all …]
H A DDriver.cpp1713 StringRef ProgName = A->getValue(); in HandleImmediateArgs() local
1716 if (! ProgName.empty()) in HandleImmediateArgs()
1717 llvm::outs() << GetProgramPath(ProgName, TC); in HandleImmediateArgs()
/freebsd-12.1/contrib/llvm/lib/LineEditor/
H A DLineEditor.cpp24 std::string LineEditor::getDefaultHistoryPath(StringRef ProgName) { in getDefaultHistoryPath() argument
27 sys::path::append(Path, "." + ProgName + "-history"); in getDefaultHistoryPath()
199 LineEditor::LineEditor(StringRef ProgName, StringRef HistoryPath, FILE *In, in LineEditor() argument
201 : Prompt((ProgName + "> ").str()), HistoryPath(HistoryPath), in LineEditor()
204 this->HistoryPath = getDefaultHistoryPath(ProgName); in LineEditor()
212 Data->EL = ::el_init(ProgName.str().c_str(), In, Out, Err); in LineEditor()
287 LineEditor::LineEditor(StringRef ProgName, StringRef HistoryPath, FILE *In, in LineEditor() argument
289 : Prompt((ProgName + "> ").str()), Data(new InternalData) { in LineEditor()
/freebsd-12.1/contrib/llvm/tools/llvm-mc/
H A Dllvm-mc.cpp193 static const Target *GetTarget(const char *ProgName) { in GetTarget() argument
204 WithColor::error(errs(), ProgName) << Error; in GetTarget()
280 static int AssembleInput(const char *ProgName, const Target *TheTarget, in AssembleInput() argument
290 WithColor::error(errs(), ProgName) in AssembleInput()
325 const char *ProgName = argv[0]; in main() local
326 const Target *TheTarget = GetTarget(ProgName); in main()
336 WithColor::error(errs(), ProgName) in main()
361 WithColor::error(errs(), ProgName) in main()
382 errs() << ProgName << ": Dwarf version " << DwarfVersion in main()
515 Res = AssembleInput(ProgName, TheTarget, SrcMgr, Ctx, *Str, *MAI, *STI, in main()
/freebsd-12.1/contrib/llvm/lib/TableGen/
H A DMain.cpp53 static int reportError(const char *ProgName, Twine Msg) { in reportError() argument
54 errs() << ProgName << ": " << Msg; in reportError()
/freebsd-12.1/contrib/llvm/include/llvm/LineEditor/
H A DLineEditor.h34 LineEditor(StringRef ProgName, StringRef HistoryPath = "", FILE *In = stdin,
46 static std::string getDefaultHistoryPath(StringRef ProgName);
/freebsd-12.1/contrib/llvm/tools/llvm-mca/
H A Dllvm-mca.cpp181 const Target *getTarget(const char *ProgName) { in getTarget() argument
191 errs() << ProgName << ": " << Error; in getTarget()
269 const char *ProgName = argv[0]; in main() local
270 const Target *TheTarget = getTarget(ProgName); in main()
/freebsd-12.1/contrib/llvm/lib/Support/
H A DSourceMgr.cpp374 void SMDiagnostic::print(const char *ProgName, raw_ostream &OS, in print() argument
379 if (ProgName && ProgName[0]) in print()
380 S << ProgName << ": "; in print()
/freebsd-12.1/contrib/llvm/tools/lli/
H A Dlli.cpp352 static void reportError(SMDiagnostic Err, const char *ProgName) { in reportError() argument
353 Err.print(ProgName, errs()); in reportError()
357 int runOrcLazyJIT(const char *ProgName);
753 int runOrcLazyJIT(const char *ProgName) { in runOrcLazyJIT() argument
762 reportError(Err, ProgName); in runOrcLazyJIT()
828 reportError(Err, ProgName); in runOrcLazyJIT()
/freebsd-12.1/contrib/llvm/tools/lld/ELF/
H A DDriverUtils.cpp143 outs(), (Config->ProgName + " [options] file...").str().c_str(), "lld", in printHelp()
152 outs() << Config->ProgName << ": supported targets: elf\n"; in printHelp()
H A DConfig.h103 llvm::StringRef ProgName; member
H A DDriver.cpp101 Config->ProgName = Args[0]; in link()
743 const char *Argv[] = {Config->ProgName.data(), Opt.data()}; in parseClangOption()
/freebsd-12.1/contrib/llvm/tools/llvm-profdata/
H A Dllvm-profdata.cpp954 StringRef ProgName(sys::path::filename(argv[0])); in main() local
964 std::string Invocation(ProgName.str() + " " + argv[1]); in main()
973 << "USAGE: " << ProgName << " <command> [args...]\n" in main()
974 << "USAGE: " << ProgName << " <command> -help\n\n" in main()
982 errs() << ProgName << ": No command specified!\n"; in main()
984 errs() << ProgName << ": Unknown command!\n"; in main()
986 errs() << "USAGE: " << ProgName << " <merge|show> [args...]\n"; in main()
/freebsd-12.1/contrib/compiler-rt/lib/fuzzer/
H A DFuzzerDriver.cpp79 static std::string *ProgName; variable
83 auto Prog = ProgName->c_str(); in PrintHelp()
544 ProgName = new std::string(Args[0]); in FuzzerDriver()
545 if (Argv0 != *ProgName) { in FuzzerDriver()
703 Printf("%s: Running %zd inputs %d time(s) each.\n", ProgName->c_str(), in FuzzerDriver()
/freebsd-12.1/contrib/llvm/include/llvm/Support/
H A DSourceMgr.h303 void print(const char *ProgName, raw_ostream &S, bool ShowColors = true,
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/Driver/
H A DToolChain.h258 static ParsedClangName getTargetAndModeFromProgramName(StringRef ProgName);
/freebsd-12.1/contrib/llvm/tools/llc/
H A Dllc.cpp177 const char *ProgName) { in GetOutputStream() argument