[llvm] r258667 - [llvm-size] Use stderr instead of stdout for error messages.
Davide Italiano via llvm-commits
llvm-commits at lists.llvm.org
Sun Jan 24 17:24:16 PST 2016
Author: davide
Date: Sun Jan 24 19:24:15 2016
New Revision: 258667
URL: http://llvm.org/viewvc/llvm-project?rev=258667&view=rev
Log:
[llvm-size] Use stderr instead of stdout for error messages.
This matches the behavior of other tools: objdump, readobj etc..
Modified:
llvm/trunk/tools/llvm-size/llvm-size.cpp
Modified: llvm/trunk/tools/llvm-size/llvm-size.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-size/llvm-size.cpp?rev=258667&r1=258666&r2=258667&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-size/llvm-size.cpp (original)
+++ llvm/trunk/tools/llvm-size/llvm-size.cpp Sun Jan 24 19:24:15 2016
@@ -84,8 +84,8 @@ static bool error(std::error_code ec) {
if (!ec)
return false;
- outs() << ToolName << ": error reading file: " << ec.message() << ".\n";
- outs().flush();
+ errs() << ToolName << ": error reading file: " << ec.message() << ".\n";
+ errs().flush();
return true;
}
More information about the llvm-commits
mailing list