From 65875f3fdbf09c46aa63f54337662d404e4f1c40 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Tue, 12 Jul 2022 12:41:58 -0700 Subject: [Strings] string.as (#4797) --- src/wasm-builder.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/wasm-builder.h') diff --git a/src/wasm-builder.h b/src/wasm-builder.h index 507aa510b..9fe039af1 100644 --- a/src/wasm-builder.h +++ b/src/wasm-builder.h @@ -1034,6 +1034,13 @@ public: ret->finalize(); return ret; } + StringAs* makeStringAs(StringAsOp op, Expression* ref) { + auto* ret = wasm.allocator.alloc(); + ret->op = op; + ret->ref = ref; + ret->finalize(); + return ret; + } // Additional helpers -- cgit v1.2.3