projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d42ae6b
)
[llvm-readobj] Use stderr and not stdout for error messages.
author
Davide Italiano
<davide@freebsd.org>
Wed, 23 Dec 2015 19:29:34 +0000
(19:29 +0000)
committer
Davide Italiano
<davide@freebsd.org>
Wed, 23 Dec 2015 19:29:34 +0000
(19:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256347
91177308
-0d34-0410-b5e6-
96231b3b80d8
tools/llvm-readobj/llvm-readobj.cpp
patch
|
blob
|
history
diff --git
a/tools/llvm-readobj/llvm-readobj.cpp
b/tools/llvm-readobj/llvm-readobj.cpp
index 92ee299efcedc4f6cad7c2ba8711a085a8007e52..fa8fee2b03ab764318e4fa8106fc1fc620f77821 100644
(file)
--- 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) {
-
out
s() << "\nError reading file: " << Msg << ".\n";
-
out
s().flush();
+
err
s() << "\nError reading file: " << Msg << ".\n";
+
err
s().flush();
exit(1);
}