Simplify "missing argument" error message.

llvm-svn: 288112
This commit is contained in:
Rui Ueyama 2016-11-29 04:17:31 +00:00
parent e5e407beb4
commit c910bc7e19
1 changed files with 1 additions and 3 deletions

View File

@ -658,9 +658,7 @@ llvm::opt::InputArgList ArgParser::parse(ArrayRef<const char *> ArgsArr) {
}
if (MissingCount)
fatal("missing arg value for \"" + Twine(Args.getArgString(MissingIndex)) +
"\", expected " + Twine(MissingCount) +
(MissingCount == 1 ? " argument." : " arguments."));
fatal(Twine(Args.getArgString(MissingIndex)) + ": missing argument");
for (auto *Arg : Args.filtered(OPT_UNKNOWN))
llvm::errs() << "ignoring unknown argument: " << Arg->getSpelling() << "\n";
return Args;