From b98f7adcfd2751d9df7b8bc99062bf2ac7899a8e Mon Sep 17 00:00:00 2001 From: Davide Italiano Date: Wed, 23 Dec 2015 19:29:34 +0000 Subject: [PATCH] [llvm-readobj] Use stderr and not stdout for error messages. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256347 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/llvm-readobj/llvm-readobj.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/llvm-readobj/llvm-readobj.cpp b/tools/llvm-readobj/llvm-readobj.cpp index 92ee299efce..fa8fee2b03a 100644 --- a/tools/llvm-readobj/llvm-readobj.cpp +++ b/tools/llvm-readobj/llvm-readobj.cpp @@ -232,8 +232,8 @@ namespace opts { namespace llvm { LLVM_ATTRIBUTE_NORETURN void reportError(Twine Msg) { - outs() << "\nError reading file: " << Msg << ".\n"; - outs().flush(); + errs() << "\nError reading file: " << Msg << ".\n"; + errs().flush(); exit(1); } -- 2.34.1