summaryrefslogtreecommitdiff
path: root/src/s2wasm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/s2wasm.h')
-rw-r--r--src/s2wasm.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/s2wasm.h b/src/s2wasm.h
index a1b5a7ef9..8e75c6b89 100644
--- a/src/s2wasm.h
+++ b/src/s2wasm.h
@@ -735,6 +735,10 @@ private:
block->name = Name();
}
wasm.addFunction(func);
+ // XXX for now, export all functions
+ auto exp = allocator.alloc<Export>();
+ exp->name = exp->value = func->name;
+ wasm.addExport(exp);
}
void parseType() {