diff options
author | Derek Schuff <dschuff@google.com> | 2016-08-01 21:34:04 +0000 |
---|---|---|
committer | Derek Schuff <dschuff@google.com> | 2016-08-01 21:34:04 +0000 |
commit | f41f67d3d91ca7aea611fd6eb4dc11d32ff677d5 (patch) | |
tree | 415db41f5891d4c73bde4d6a2b89c2e031758676 /llvm/lib/Target/WebAssembly/CMakeLists.txt | |
parent | 4a7130a8fb77e45f3e597a132a539ac323ac6a34 (diff) | |
download | bcm5719-llvm-f41f67d3d91ca7aea611fd6eb4dc11d32ff677d5.tar.gz bcm5719-llvm-f41f67d3d91ca7aea611fd6eb4dc11d32ff677d5.zip |
[WebAssembly] Add asm.js-style exception handling support
Summary: This patch includes asm.js-style exception handling support for
WebAssembly. The WebAssembly MVP does not have any support for
unwinding or non-local control flow. In order to support C++ exceptions,
emscripten currently uses JavaScript exceptions along with some support
code (written in JavaScript) that is bundled by emscripten with the
generated code.
This scheme lowers exception-related instructions for wasm such that
wasm modules can be compatible with emscripten's existing scheme and
share the support code.
Patch by Heejin Ahn
Differential Revision: https://reviews.llvm.org/D22958
llvm-svn: 277391
Diffstat (limited to 'llvm/lib/Target/WebAssembly/CMakeLists.txt')
-rw-r--r-- | llvm/lib/Target/WebAssembly/CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/WebAssembly/CMakeLists.txt b/llvm/lib/Target/WebAssembly/CMakeLists.txt index b2865f1a0f9..2ce8364b844 100644 --- a/llvm/lib/Target/WebAssembly/CMakeLists.txt +++ b/llvm/lib/Target/WebAssembly/CMakeLists.txt @@ -20,6 +20,7 @@ add_llvm_target(WebAssemblyCodeGen WebAssemblyISelLowering.cpp WebAssemblyInstrInfo.cpp WebAssemblyLowerBrUnless.cpp + WebAssemblyLowerEmscriptenExceptions.cpp WebAssemblyMachineFunctionInfo.cpp WebAssemblyMCInstLower.cpp WebAssemblyOptimizeLiveIntervals.cpp |