forked from OSchip/llvm-project
[llvm-objdump] Use stderr and not stdout for fatal errors.
llvm-svn: 256423
This commit is contained in:
parent
d59bc5188d
commit
140af648f2
|
@ -247,8 +247,8 @@ void llvm::error(std::error_code EC) {
|
|||
if (!EC)
|
||||
return;
|
||||
|
||||
outs() << ToolName << ": error reading file: " << EC.message() << ".\n";
|
||||
outs().flush();
|
||||
errs() << ToolName << ": error reading file: " << EC.message() << ".\n";
|
||||
errs().flush();
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue