[llvm] r311069 - [llvm-dlltool] Improve an error message when unable to open files. NFC.
Martin Storsjo via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 16 23:26:42 PDT 2017
Author: mstorsjo
Date: Wed Aug 16 23:26:42 2017
New Revision: 311069
URL: http://llvm.org/viewvc/llvm-project?rev=311069&view=rev
Log:
[llvm-dlltool] Improve an error message when unable to open files. NFC.
Differential Revision: https://reviews.llvm.org/D36818
Modified:
llvm/trunk/lib/ToolDrivers/llvm-dlltool/DlltoolDriver.cpp
Modified: llvm/trunk/lib/ToolDrivers/llvm-dlltool/DlltoolDriver.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ToolDrivers/llvm-dlltool/DlltoolDriver.cpp?rev=311069&r1=311068&r2=311069&view=diff
==============================================================================
--- llvm/trunk/lib/ToolDrivers/llvm-dlltool/DlltoolDriver.cpp (original)
+++ llvm/trunk/lib/ToolDrivers/llvm-dlltool/DlltoolDriver.cpp Wed Aug 16 23:26:42 2017
@@ -64,7 +64,7 @@ Optional<MemoryBufferRef> openFile(Strin
ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> MB = MemoryBuffer::getFile(Path);
if (std::error_code EC = MB.getError()) {
- llvm::errs() << "fail openFile: " << EC.message() << "\n";
+ llvm::errs() << "cannot open file " << Path << ": " << EC.message() << "\n";
return None;
}
More information about the llvm-commits
mailing list