[llvm] r256347 - [llvm-readobj] Use stderr and not stdout for error messages.
Davide Italiano via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 23 11:29:35 PST 2015
Author: davide
Date: Wed Dec 23 13:29:34 2015
New Revision: 256347
URL: http://llvm.org/viewvc/llvm-project?rev=256347&view=rev
Log:
[llvm-readobj] Use stderr and not stdout for error messages.
Modified:
llvm/trunk/tools/llvm-readobj/llvm-readobj.cpp
Modified: llvm/trunk/tools/llvm-readobj/llvm-readobj.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-readobj/llvm-readobj.cpp?rev=256347&r1=256346&r2=256347&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-readobj/llvm-readobj.cpp (original)
+++ llvm/trunk/tools/llvm-readobj/llvm-readobj.cpp Wed Dec 23 13:29:34 2015
@@ -232,8 +232,8 @@ namespace opts {
namespace llvm {
LLVM_ATTRIBUTE_NORETURN void reportError(Twine Msg) {
- outs() << "\nError reading file: " << Msg << ".\n";
- outs().flush();
+ errs() << "\nError reading file: " << Msg << ".\n";
+ errs().flush();
exit(1);
}
More information about the llvm-commits
mailing list