[llvm-objdump] Use stderr and not stdout for fatal errors.
authorDavide Italiano <davide@freebsd.org>
Fri, 25 Dec 2015 18:16:45 +0000 (18:16 +0000)
committerDavide Italiano <davide@freebsd.org>
Fri, 25 Dec 2015 18:16:45 +0000 (18:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256423 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-objdump/llvm-objdump.cpp

index e892433..1b7ba3f 100644 (file)
@@ -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);
 }