1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

"-" 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 fd368c900e
commit 605e44a5b0

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