diff options
| author | Josh Stone <jistone@redhat.com> | 2019-04-05 17:48:23 -0700 |
|---|---|---|
| committer | Josh Stone <jistone@redhat.com> | 2019-04-05 17:48:23 -0700 |
| commit | aafe2c6da93373b5f612c406037c5b75ba9deb46 (patch) | |
| tree | d87868ad1e42efa301af819bf2a1cba4641f57c5 /src/test/ui/thinlto | |
| parent | acd8dd6a50d505057a7d7ad8d0d7a4c2bd274200 (diff) | |
| download | rust-aafe2c6da93373b5f612c406037c5b75ba9deb46.tar.gz rust-aafe2c6da93373b5f612c406037c5b75ba9deb46.zip | |
Show better errors for LLVM IR output
I was trying to output LLVM IR directly to the console:
$ rustc hello.rs --emit=llvm-ir -o /dev/stdout
LLVM ERROR: IO failure on output stream: Bad file descriptor
Now `LLVMRustPrintModule` returns an error, and we print:
error: failed to write LLVM IR to /dev/stdout.hello.7rcbfp3g-cgu.0.rcgu.ll: Permission denied
... which is more informative.
Diffstat (limited to 'src/test/ui/thinlto')
0 files changed, 0 insertions, 0 deletions
