summaryrefslogtreecommitdiffstats
path: root/lld/ELF/LinkerScript.cpp
diff options
context:
space:
mode:
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 bdf199bd724..b4580b5fe7c 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