diff options
Diffstat (limited to 'src/wasm-builder.h')
-rw-r--r-- | src/wasm-builder.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/wasm-builder.h b/src/wasm-builder.h index 0829719ed..75ebcd0a3 100644 --- a/src/wasm-builder.h +++ b/src/wasm-builder.h @@ -1011,6 +1011,15 @@ public: ret->finalize(); return ret; } + StringEncode* + makeStringEncode(StringEncodeOp op, Expression* ref, Expression* ptr) { + auto* ret = wasm.allocator.alloc<StringEncode>(); + ret->op = op; + ret->ref = ref; + ret->ptr = ptr; + ret->finalize(); + return ret; + } // Additional helpers |