[WebAssembly] Improve feature validation error messages
authorThomas Lively <tlively@google.com>
Thu, 30 May 2019 21:57:23 +0000 (21:57 +0000)
committerThomas Lively <tlively@google.com>
Thu, 30 May 2019 21:57:23 +0000 (21:57 +0000)
commit86e73f51d77df26581ccb1b36447d0db9d5ac647
tree086666b6a94a435fbdecf09c4874863a1bbfcb2b
parent6ada11f13466a758597f912156be47ffca2e1408
[WebAssembly] Improve feature validation error messages

Summary:
Add the names of the input files responsible for each error to the
messages.

Reviewers: sbc100, azakai

Subscribers: dschuff, jgravelle-google, aheejin, sunfish, jfb, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D62704

llvm-svn: 362162
lld/test/wasm/shared-memory-no-atomics.yaml
lld/test/wasm/target-feature-required.yaml
lld/test/wasm/target-feature-used.yaml
lld/wasm/Writer.cpp