summaryrefslogtreecommitdiff
path: root/src/wasm-builder.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm-builder.h')
-rw-r--r--src/wasm-builder.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/wasm-builder.h b/src/wasm-builder.h
index d1cb5f16d..467edf1bd 100644
--- a/src/wasm-builder.h
+++ b/src/wasm-builder.h
@@ -656,6 +656,14 @@ public:
ret->finalize();
return ret;
}
+ TableSet* makeTableSet(Name table, Expression* index, Expression* value) {
+ auto* ret = wasm.allocator.alloc<TableSet>();
+ ret->table = table;
+ ret->index = index;
+ ret->value = value;
+ ret->finalize();
+ return ret;
+ }
private:
Try* makeTry(Name name,