[lld][WebAssembly] Early error if output file cannot be created.
authorSam Clegg <sbc@chromium.org>
Sat, 28 Mar 2020 00:03:32 +0000 (17:03 -0700)
committerSam Clegg <sbc@chromium.org>
Wed, 1 Apr 2020 04:42:38 +0000 (21:42 -0700)
commitb5767010a8ea2f5e2148da5f3e37041185211370
treef272325875ddda0569528305f4f0a2e5d516f818
parent6dd696ae4fa1b1564e76e5531c268724d2c8b98f
[lld][WebAssembly] Early error if output file cannot be created.

This matches the behaviour of the ELF driver.

Also move the `createFiles` to be `checkConfig` and report `no input
files` there.   Again this is mostly to match the structure of the ELF
linker better.

Differential Revision: https://reviews.llvm.org/D76960
lld/test/wasm/early-exit-for-bad-paths.s [new file with mode: 0644]
lld/test/wasm/lto/opt-level.ll
lld/test/wasm/responsefile.test
lld/wasm/Driver.cpp