[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
diff --git a/lld/ELF/Driver.cpp b/lld/ELF/Driver.cpp
index 806846e..e027206 100644
--- a/lld/ELF/Driver.cpp
+++ b/lld/ELF/Driver.cpp
@@ -92,7 +92,7 @@
using namespace llvm::sys::fs;
log(Path);
auto MBOrErr = MemoryBuffer::getFile(Path);
- if (error(MBOrErr, "cannot open " + Path))
+ if (error(MBOrErr, "Cannot open " + Path))
return;
std::unique_ptr<MemoryBuffer> &MB = *MBOrErr;
MemoryBufferRef MBRef = MB->getMemBufferRef();
@@ -313,7 +313,7 @@
}
if (Files.empty() && !HasError)
- error("no input files.");
+ error("No input files");
}
template <class ELFT> void LinkerDriver::link(opt::InputArgList &Args) {