aboutsummaryrefslogtreecommitdiff
path: root/tools/llvm-extract
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-08-18 04:03:24 +0000
committerChris Lattner <sabre@nondot.org>2009-08-18 04:03:24 +0000
commit2c785880eadb75f821771352ccf4a442a1b05668 (patch)
treefed1772c85a20df2550975ca59a079c72338944b /tools/llvm-extract
parentca7409664273fed4b473127295af3af0836b3077 (diff)
"-" should write to stdout, not stderr.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79310 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-extract')
-rw-r--r--tools/llvm-extract/llvm-extract.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/llvm-extract/llvm-extract.cpp b/tools/llvm-extract/llvm-extract.cpp
index 608ae24560..6b7846f38e 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;
}