From 605e44a5b000a96ff0a8851978b9c283722c4722 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 18 Aug 2009 04:03:24 +0000 Subject: [PATCH] "-" should write to stdout, not stderr. llvm-svn: 79310 --- tools/llvm-extract/llvm-extract.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/llvm-extract/llvm-extract.cpp b/tools/llvm-extract/llvm-extract.cpp index 608ae24560a..6b7846f38e4 100644 --- a/tools/llvm-extract/llvm-extract.cpp +++ b/tools/llvm-extract/llvm-extract.cpp @@ -124,14 +124,14 @@ int main(int argc, char **argv) { return 1; } } else { // Specified stdout - // FIXME: errs() is not binary! - Out = &errs(); + // FIXME: outs() is not binary! + Out = &outs(); } Passes.add(createBitcodeWriterPass(*Out)); Passes.run(*M.get()); - if (Out != &errs()) + if (Out != &outs()) delete Out; return 0; }