[llvm] Remove full stop frome error message

Address post-commit feedback from James Henderson in D80959.
This commit is contained in:
Jonas Devlieghere 2020-06-24 09:40:44 -07:00
parent 6a89088523
commit fd9f5f9c1b
2 changed files with 3 additions and 3 deletions

View File

@ -35,4 +35,4 @@ RUN: llvm-dwarfdump -diff -verbose 2>&1 | FileCheck --check-prefix=INCOMPATIBLE
INCOMPATIBLE: error: incompatible arguments: specifying both -diff and -verbose is currently not supported
RUN: not llvm-dwarfdump --debug-names=0x0 2>&1 | FileCheck --check-prefix=FLAG %s
FLAG: for the --debug-names option: this is a flag and does not take a value.
FLAG: for the --debug-names option: this is a flag and does not take a value

View File

@ -63,7 +63,7 @@ public:
return false;
}
if (Arg.getAsInteger(0, Val.Val))
return O.error("'" + Arg + "' value invalid for integer argument!");
return O.error("'" + Arg + "' value invalid for integer argument");
Val.HasValue = true;
Val.IsRequested = true;
return false;
@ -89,7 +89,7 @@ public:
/// Return true on error.
bool parse(Option &O, StringRef ArgName, StringRef Arg, BoolOption &Val) {
if (Arg != "")
return O.error("this is a flag and does not take a value.");
return O.error("this is a flag and does not take a value");
Val.Val = 0;
Val.HasValue = false;
Val.IsRequested = true;