diff options
Diffstat (limited to 'src/wasm-builder.h')
-rw-r--r-- | src/wasm-builder.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/wasm-builder.h b/src/wasm-builder.h index 1faf95d73..3677b9796 100644 --- a/src/wasm-builder.h +++ b/src/wasm-builder.h @@ -934,6 +934,18 @@ public: ret->finalize(); return ret; } + StringNew* makeStringNew(StringNewOp op, + Expression* ptr, + Expression* start, + Expression* end) { + auto* ret = wasm.allocator.alloc<StringNew>(); + ret->op = op; + ret->ptr = ptr; + ret->start = start; + ret->end = end; + ret->finalize(); + return ret; + } StringConst* makeStringConst(Name string) { auto* ret = wasm.allocator.alloc<StringConst>(); ret->string = string; |