[lld][WebAssembly] Improve error reporting for bad ar archive members
commit1cf6ebc0e9031a433eb8c40652c9904a53f537f7
authorSam Clegg <sbc@chromium.org>
Tue, 1 Mar 2022 00:32:02 +0000 (28 16:32 -0800)
committerSam Clegg <sbc@chromium.org>
Tue, 1 Mar 2022 23:21:53 +0000 (1 15:21 -0800)
treebb4e38dfeadf1d87b39f73bad0c65a11ac757969
parent38406ca9bdff6c62eb3c2e131f82c8304535690a
[lld][WebAssembly] Improve error reporting for bad ar archive members

Show the name of of the archive in the error message as well as the name
of the object within it.

Differential Revision: https://reviews.llvm.org/D120689
lld/test/wasm/bad-archive-member.s [new file with mode: 0644]
lld/wasm/InputFiles.cpp