Recommit of r263252, [ELF] - Change all messages to lowercase to be consistent.
which was reverted because included
unrelative changes by mistake.
Original commit message:
[ELF] - Change all messages to lowercase to be consistent.
That is directly opposite to http://reviews.llvm.org/D18045,
which was reverted.
This patch changes all messages to start from lowercase letter if
they were not before.
That is done to be consistent with clang.
Differential revision: http://reviews.llvm.org/D18085
llvm-svn: 263337
diff --git a/lld/ELF/LinkerScript.cpp b/lld/ELF/LinkerScript.cpp
index b4580b5..677abb1 100644
--- a/lld/ELF/LinkerScript.cpp
+++ b/lld/ELF/LinkerScript.cpp
@@ -296,7 +296,7 @@
} else {
std::string Path = findFromSearchPaths(S);
if (Path.empty())
- setError("Unable to find " + S);
+ setError("unable to find " + S);
else
Driver->addFile(Saver.save(Path));
}
@@ -419,7 +419,7 @@
S = S.substr(2);
uint8_t H;
if (B.getAsInteger(16, H)) {
- setError("Not a HEX value: " + B);
+ setError("not a HEX value: " + B);
return {};
}
Hex.push_back(H);
@@ -442,13 +442,13 @@
readSectionPatterns(OutSec, true);
expect(")");
} else {
- setError("Unknown command " + Tok);
+ setError("unknown command " + Tok);
}
}
StringRef Tok = peek();
if (Tok.startswith("=")) {
if (!Tok.startswith("=0x")) {
- setError("Filler should be a HEX value");
+ setError("filler should be a HEX value");
return;
}
Tok = Tok.substr(3);