From 777f96304e249b738f4f91edf1c4dd302ad862c8 Mon Sep 17 00:00:00 2001 From: George Rimar Date: Sat, 12 Mar 2016 08:31:34 +0000 Subject: 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 --- lld/ELF/LinkerScript.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lld/ELF/LinkerScript.cpp') 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 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); -- cgit v1.2.3