[llvm-commits] [llvm] r79310 - /llvm/trunk/tools/llvm-extract/llvm-extract.cpp
Chris Lattner
sabre at nondot.org
Mon Aug 17 21:03:24 PDT 2009
Author: lattner
Date: Mon Aug 17 23:03:24 2009
New Revision: 79310
URL: http://llvm.org/viewvc/llvm-project?rev=79310&view=rev
Log:
"-" should write to stdout, not stderr.
Modified:
llvm/trunk/tools/llvm-extract/llvm-extract.cpp
Modified: llvm/trunk/tools/llvm-extract/llvm-extract.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-extract/llvm-extract.cpp?rev=79310&r1=79309&r2=79310&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-extract/llvm-extract.cpp (original)
+++ llvm/trunk/tools/llvm-extract/llvm-extract.cpp Mon Aug 17 23:03:24 2009
@@ -124,14 +124,14 @@
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;
}
More information about the llvm-commits
mailing list