summaryrefslogtreecommitdiffstats
path: root/lld/ELF/LinkerScript.cpp
diff options
context:
space:
mode:
authorGeorge Rimar <grimar@accesssoftek.com>2016-03-10 16:58:34 +0000
committerGeorge Rimar <grimar@accesssoftek.com>2016-03-10 16:58:34 +0000
commite094388861ec71d0fa8693adbf6bd999dd9691cb (patch)
treee1847cb4f51deee2f89e842b162d3c827e48951f /lld/ELF/LinkerScript.cpp
parent278a5b31a5a5524eaafced3f72e009d59277752f (diff)
downloadbcm5719-llvm-e094388861ec71d0fa8693adbf6bd999dd9691cb.tar.gz
bcm5719-llvm-e094388861ec71d0fa8693adbf6bd999dd9691cb.zip
[ELF] - Consistent spelling for error/warning messages
Previously error and warnings were not consistent in lld. Some of them started from lowercase letter, others from uppercase. Also there was one or two which had a dot at the end. This patch changes all messages to start from uppercase letter if they were not before. Differential revision: http://reviews.llvm.org/D18045 llvm-svn: 263125
Diffstat (limited to 'lld/ELF/LinkerScript.cpp')
-rw-r--r--lld/ELF/LinkerScript.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/lld/ELF/LinkerScript.cpp b/lld/ELF/LinkerScript.cpp
index b4580b5fe7c..bdf199bd724 100644
--- a/lld/ELF/LinkerScript.cpp
+++ b/lld/ELF/LinkerScript.cpp
@@ -166,7 +166,7 @@ void ScriptParser::run() {
if (Handler Fn = Cmd.lookup(Tok))
(this->*Fn)();
else
- setError("unknown directive: " + Tok);
+ setError("Unknown directive: " + Tok);
}
}
@@ -190,7 +190,7 @@ std::vector<StringRef> ScriptParser::tokenize(StringRef S) {
if (S.startswith("\"")) {
size_t E = S.find("\"", 1);
if (E == StringRef::npos) {
- error("unclosed quote");
+ error("Unclosed quote");
return {};
}
Ret.push_back(S.substr(1, E - 1));
@@ -217,7 +217,7 @@ StringRef ScriptParser::skipSpace(StringRef S) {
if (S.startswith("/*")) {
size_t E = S.find("*/", 2);
if (E == StringRef::npos) {
- error("unclosed comment in a linker script");
+ error("Unclosed comment in a linker script");
return "";
}
S = S.substr(E + 2);
@@ -237,7 +237,7 @@ StringRef ScriptParser::next() {
if (Error)
return "";
if (atEOF()) {
- setError("unexpected EOF");
+ setError("Unexpected EOF");
return "";
}
return Tokens[Pos++];
@@ -255,7 +255,7 @@ bool ScriptParser::skip(StringRef Tok) {
if (Error)
return false;
if (atEOF()) {
- setError("unexpected EOF");
+ setError("Unexpected EOF");
return false;
}
if (Tok != Tokens[Pos])
@@ -352,7 +352,7 @@ void ScriptParser::readInclude() {
StringRef Tok = next();
auto MBOrErr = MemoryBuffer::getFile(Tok);
if (!MBOrErr) {
- setError("cannot open " + Tok);
+ setError("Cannot open " + Tok);
return;
}
std::unique_ptr<MemoryBuffer> &MB = *MBOrErr;
@@ -385,7 +385,7 @@ void ScriptParser::readOutputFormat() {
if (Tok == ")")
return;
if (Tok != ",") {
- setError("unexpected token: " + Tok);
+ setError("Unexpected token: " + Tok);
return;
}
next();
OpenPOWER on IntegriCloud