mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-07-05 13:29:22 +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;
|
return 1;
|
||||||
}
|
}
|
||||||
} else { // Specified stdout
|
} else { // Specified stdout
|
||||||
// FIXME: errs() is not binary!
|
// FIXME: outs() is not binary!
|
||||||
Out = &errs();
|
Out = &outs();
|
||||||
}
|
}
|
||||||
|
|
||||||
Passes.add(createBitcodeWriterPass(*Out));
|
Passes.add(createBitcodeWriterPass(*Out));
|
||||||
Passes.run(*M.get());
|
Passes.run(*M.get());
|
||||||
|
|
||||||
if (Out != &errs())
|
if (Out != &outs())
|
||||||
delete Out;
|
delete Out;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user