diff options
author | George Rimar <grimar@accesssoftek.com> | 2016-03-12 08:31:34 +0000 |
---|---|---|
committer | George Rimar <grimar@accesssoftek.com> | 2016-03-12 08:31:34 +0000 |
commit | 777f96304e249b738f4f91edf1c4dd302ad862c8 (patch) | |
tree | 27b2d48354776da04859caf8519c4ac61b52bb37 /lld/ELF/LinkerScript.cpp | |
parent | 02aa766897f5b0ce406076db34934acf0012bd7f (diff) | |
download | bcm5719-llvm-777f96304e249b738f4f91edf1c4dd302ad862c8.tar.gz bcm5719-llvm-777f96304e249b738f4f91edf1c4dd302ad862c8.zip |
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
Diffstat (limited to 'lld/ELF/LinkerScript.cpp')
-rw-r--r-- | lld/ELF/LinkerScript.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lld/ELF/LinkerScript.cpp b/lld/ELF/LinkerScript.cpp index b4580b5fe7c..677abb116b5 100644 --- a/lld/ELF/LinkerScript.cpp +++ b/lld/ELF/LinkerScript.cpp @@ -296,7 +296,7 @@ void ScriptParser::addFile(StringRef S) { } 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 @@ std::vector<uint8_t> ScriptParser::parseHex(StringRef S) { 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 @@ void ScriptParser::readOutputSectionDescription() { 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); |