From 31d8b7d21d54beeab4eccc60887db798b025235f Mon Sep 17 00:00:00 2001 From: Justin Bogner Date: Wed, 26 Oct 2016 22:37:52 +0000 Subject: llvm-objdump: Make some error messages more consistent Most of the version of report_error were quoting the filename and printing a colon between the file name and the error message, but this one wasn't doing either of those. Fix the output to be more consistent. llvm-svn: 285252 --- llvm/tools/llvm-objdump/llvm-objdump.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/tools/llvm-objdump') diff --git a/llvm/tools/llvm-objdump/llvm-objdump.cpp b/llvm/tools/llvm-objdump/llvm-objdump.cpp index 43a9a7aaacc..f8bef75d53a 100644 --- a/llvm/tools/llvm-objdump/llvm-objdump.cpp +++ b/llvm/tools/llvm-objdump/llvm-objdump.cpp @@ -319,14 +319,14 @@ LLVM_ATTRIBUTE_NORETURN void llvm::report_error(StringRef ArchiveName, if (ArchiveName != "") errs() << ArchiveName << "(" << FileName << ")"; else - errs() << FileName; + errs() << "'" << FileName << "'"; if (!ArchitectureName.empty()) errs() << " (for architecture " << ArchitectureName << ")"; std::string Buf; raw_string_ostream OS(Buf); logAllUnhandledErrors(std::move(E), OS, ""); OS.flush(); - errs() << " " << Buf; + errs() << ": " << Buf; exit(1); } -- cgit v1.2.3