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:
parent
fd368c900e
commit
605e44a5b0
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user