21 int Argc,
const char *
const *Argv,
StringSaver &Saver,
37 "' in '" +
A->getAsString(
List) +
"'");
45 for (
unsigned ID = 1, E =
T.getNumOptions(); ID <= E; ++ID) {
46 unsigned Kind =
T.getOptionKind(ID);
53 MetaVar = (
"=" + (V.empty() ?
StringRef(
"<value>") : V)).str();
55 MetaVar = (
"[=" + V +
"]").str();
56 Fn(
T.getOptionName(ID), MetaVar,
T.getOptionHelpText(ID));
65 std::unique_ptr<Arg>
A =
Table().ParseOneArg(
List, Consumed);
66 Consumed = std::min<unsigned>(Consumed, Args.size());
69 "' requires an argument");
72 if (!Apply(Opts, *
A,
Alloc))
74 "' in '" +
A->getAsString(
List) +
"'");
static GCRegistry::Add< ErlangGC > A("erlang", "erlang-compatible garbage collector")
Represent a constant reference to an array (0 or more elements consecutively in memory),...
Lightweight error class with error context and mandatory checking.
static ErrorSuccess success()
Create a success value.
This class consists of common code factored out of the SmallVector class to reduce code duplication b...
void push_back(const T &Elt)
Represent a constant reference to a string, i.e.
Saves strings in the provided stable storage and returns a StringRef with a stable character pointer.
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
An efficient, type-erasing, non-owning reference to a callable.
A concrete instance of a particular driver option.
void forEachOption(function_ref< void(StringRef, StringRef, StringRef)> Fn) const override
Error parse(void *Opts, ArrayRef< const char * > Args, unsigned &Consumed, BumpPtrAllocator &Alloc) const override
Parses the option spelled by Args[0], which may take Args[1] as its value, into Opts and sets Consume...
Provide access to the Option info table.
InputArgList parseArgs(int Argc, char *const *Argv, OptSpecifier Unknown, StringSaver &Saver, std::function< void(StringRef)> ErrorFn) const
A convenience helper which handles optional initial options populated from an environment variable,...
~OptionsStructTable() override
Error parseToolArgs(int Argc, const char *const *Argv, StringSaver &Saver, function_ref< bool(const Arg &)> Apply, SmallVectorImpl< StringRef > &Inputs) const
This is an optimization pass for GlobalISel generic memory operations.
Error createStringError(std::error_code EC, char const *Fmt, const Ts &... Vals)
Create formatted StringError object.
BumpPtrAllocatorImpl<> BumpPtrAllocator
The standard BumpPtrAllocator which just uses the default template parameters.