OSDN Git Service

[WebAssembly] Handle exception specifications
authorHeejin Ahn <aheejin@gmail.com>
Fri, 8 May 2020 23:19:46 +0000 (16:19 -0700)
committerHeejin Ahn <aheejin@gmail.com>
Sat, 16 May 2020 04:03:38 +0000 (21:03 -0700)
commitbca347508c86647f9d44992275c9a364fbd9fb0d
tree6118411c11999caaa83927a0eb6e15f9936612f0
parenta065a01bf715e4a5cf1b532ea50a4a6d877eeed7
[WebAssembly] Handle exception specifications

Summary:
Wasm currently does not fully handle exception specifications. Rather
than crashing, this treats `throw()` in the same way as `noexcept`, and
ignores and prints a warning for `throw(type, ..)`, for a temporary
measure.

Reviewers: dschuff

Subscribers: sbc100, jgravelle-google, sunfish, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D79655
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/CodeGen/CGException.cpp
clang/test/CodeGenCXX/wasm-eh.cpp