[WebAssembly] Add missing -mattr=+exception-handling guards
authorHeejin Ahn <aheejin@gmail.com>
Wed, 18 Jul 2018 21:42:22 +0000 (21:42 +0000)
committerHeejin Ahn <aheejin@gmail.com>
Wed, 18 Jul 2018 21:42:22 +0000 (21:42 +0000)
commit47068a42d24db55632bc72dadba0732b24a6ac50
tree9d9f9cd63c1845d023b6b24e5bd98691c82604a4
parentda142d10d9b71ef6d278e6f45fd3692e7c66948d
[WebAssembly] Add missing -mattr=+exception-handling guards

Summary:
The use of exception handling instructions should only be enabled with
`-mattr=+exception-handling` option.

Reviewers: jgravelle-google

Subscribers: dschuff, sbc100, sunfish, llvm-commits

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

llvm-svn: 337425
llvm/lib/Target/WebAssembly/WebAssemblyInstrControl.td
llvm/test/CodeGen/WebAssembly/exception.ll