forked from OSchip/llvm-project
[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:
parent
9dc0eb4204
commit
911eb316ff
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue