diff options
| author | Heejin Ahn <aheejin@gmail.com> | 2018-05-31 22:02:34 +0000 |
|---|---|---|
| committer | Heejin Ahn <aheejin@gmail.com> | 2018-05-31 22:02:34 +0000 |
| commit | 99d60e0dabcf20f4db683da83cde905b7a1373de (patch) | |
| tree | 0f0ea16dbb9884dcc2ee2ac8418ae579b4718c96 /llvm/tools/opt | |
| parent | 2ae1ab30e378ae982d6e6b00aefedd84a00c9b29 (diff) | |
| download | bcm5719-llvm-99d60e0dabcf20f4db683da83cde905b7a1373de.tar.gz bcm5719-llvm-99d60e0dabcf20f4db683da83cde905b7a1373de.zip | |
[WebAssembly] Add Wasm exception handling prepare pass
Summary:
This adds a pass that transforms a program to be prepared for Wasm
exception handling. This is using Windows EH instructions and based on
the previous Wasm EH proposal.
(https://github.com/WebAssembly/exception-handling/blob/master/proposals/Exceptions.md)
Reviewers: dschuff, majnemer
Subscribers: jfb, mgorny, sbc100, jgravelle-google, JDevlieghere, sunfish, llvm-commits
Differential Revision: https://reviews.llvm.org/D43746
llvm-svn: 333696
Diffstat (limited to 'llvm/tools/opt')
| -rw-r--r-- | llvm/tools/opt/opt.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/tools/opt/opt.cpp b/llvm/tools/opt/opt.cpp index 677ddc6fd06..e552b98b436 100644 --- a/llvm/tools/opt/opt.cpp +++ b/llvm/tools/opt/opt.cpp @@ -447,6 +447,7 @@ int main(int argc, char **argv) { initializePostInlineEntryExitInstrumenterPass(Registry); initializeUnreachableBlockElimLegacyPassPass(Registry); initializeExpandReductionsPass(Registry); + initializeWasmEHPreparePass(Registry); initializeWriteBitcodePassPass(Registry); #ifdef LINK_POLLY_INTO_TOOLS |

