diff options
Diffstat (limited to 'src/wasm-builder.h')
-rw-r--r-- | src/wasm-builder.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/wasm-builder.h b/src/wasm-builder.h index 9a59b4015..9e2881145 100644 --- a/src/wasm-builder.h +++ b/src/wasm-builder.h @@ -771,6 +771,20 @@ public: ret->finalize(); return ret; } + TableCopy* makeTableCopy(Expression* dest, + Expression* source, + Expression* size, + Name destTable, + Name sourceTable) { + auto* ret = wasm.allocator.alloc<TableCopy>(); + ret->dest = dest; + ret->source = source; + ret->size = size; + ret->destTable = destTable; + ret->sourceTable = sourceTable; + ret->finalize(); + return ret; + } private: Try* makeTry(Name name, |