mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 00:33:09 +00:00
"-" should write to stdout, not stderr.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79310 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ca74096642
commit
2c785880ea
@ -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