diff options
Diffstat (limited to 'src/wasm-builder.h')
-rw-r--r-- | src/wasm-builder.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/wasm-builder.h b/src/wasm-builder.h index dd5b498be..a873a7309 100644 --- a/src/wasm-builder.h +++ b/src/wasm-builder.h @@ -836,6 +836,12 @@ public: ret->finalize(); return ret; } + ThrowRef* makeThrowRef(Expression* exnref) { + auto* ret = wasm.allocator.alloc<ThrowRef>(); + ret->exnref = exnref; + ret->finalize(); + return ret; + } Unreachable* makeUnreachable() { return wasm.allocator.alloc<Unreachable>(); } Pop* makePop(Type type) { auto* ret = wasm.allocator.alloc<Pop>(); |