Summary: This adds support for the 'event section' specified in the exception handling proposal. Wasm exception handling binary model spec: https://github.com/WebAssembly/exception-handling/blob/master/proposals/Exceptions.md#changes-to-the-binary-model Reviewers: sbc100, ruiu Subscribers: dschuff, jgravelle-google, sunfish, llvm-commits Differential Revision: https://reviews.llvm.org/D54875 llvm-svn: 348703
10 lines
222 B
LLVM
10 lines
222 B
LLVM
target datalayout = "e-m:e-p:32:32-i64:64-n32:64-S128"
|
|
target triple = "wasm32-unknown-unknown"
|
|
|
|
declare void @llvm.wasm.throw(i32, i8*)
|
|
|
|
define void @foo(i8* %p) {
|
|
call void @llvm.wasm.throw(i32 0, i8* %p)
|
|
ret void
|
|
}
|