[llvm-size] Use stderr instead of stdout for error messages.

This matches the behavior of other tools: objdump, readobj etc..

llvm-svn: 258667
This commit is contained in:
Davide Italiano 2016-01-25 01:24:15 +00:00
parent 9dc0eb4204
commit 911eb316ff
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}