[WebAssembly] Add -emscripten-cxx-exceptions-whitelist option
authorDerek Schuff <dschuff@google.com>
Tue, 9 Aug 2016 22:37:00 +0000 (22:37 +0000)
committerDerek Schuff <dschuff@google.com>
Tue, 9 Aug 2016 22:37:00 +0000 (22:37 +0000)
commit66641322ce93bbfad35bf4136da6ffd266a4f82f
treeab4f38dae74ed609d007112a50614640ce68688c
parente7c2875dc312a1146e5bfa3ae065a62c89b9e7cf
[WebAssembly] Add -emscripten-cxx-exceptions-whitelist option

This patch adds -emscripten-cxx-exceptions-whitelist option to
WebAssemblyLowerEmscriptenExceptions pass. This options is the list of
function names in which Emscripten-style exception handling is enabled.
This is to support emscripten's EXCEPTION_CATCHING_WHITELIST which
exists because of the performance impact of emscripten's non-zero-cost
EH method.

Patch by Heejin Ahn

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

llvm-svn: 278171
llvm/lib/Target/WebAssembly/WebAssemblyLowerEmscriptenExceptions.cpp
llvm/test/CodeGen/WebAssembly/lower-em-exceptions-whitelist.ll [new file with mode: 0644]