"-" should write to stdout, not stderr.

llvm-svn: 79310
This commit is contained in:
Chris Lattner 2009-08-18 04:03:24 +00:00
parent 8575a60d33
commit dd1db9cc81
1 changed files with 3 additions and 3 deletions

View File

@ -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;
}