forked from OSchip/llvm-project
Simplify "missing argument" error message.
llvm-svn: 288112
This commit is contained in:
parent
e5e407beb4
commit
c910bc7e19
|
@ -658,9 +658,7 @@ llvm::opt::InputArgList ArgParser::parse(ArrayRef<const char *> ArgsArr) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (MissingCount)
|
if (MissingCount)
|
||||||
fatal("missing arg value for \"" + Twine(Args.getArgString(MissingIndex)) +
|
fatal(Twine(Args.getArgString(MissingIndex)) + ": missing argument");
|
||||||
"\", expected " + Twine(MissingCount) +
|
|
||||||
(MissingCount == 1 ? " argument." : " arguments."));
|
|
||||||
for (auto *Arg : Args.filtered(OPT_UNKNOWN))
|
for (auto *Arg : Args.filtered(OPT_UNKNOWN))
|
||||||
llvm::errs() << "ignoring unknown argument: " << Arg->getSpelling() << "\n";
|
llvm::errs() << "ignoring unknown argument: " << Arg->getSpelling() << "\n";
|
||||||
return Args;
|
return Args;
|
||||||
|
|
Loading…
Reference in New Issue