From 83cd8a4e2618e2883c97fc3a2fe58b544f8bf778 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Tue, 24 Nov 2015 15:07:47 -0800 Subject: create an AllocatingModule which handles allocation for its elements --- src/asm2wasm-main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/asm2wasm-main.cpp') diff --git a/src/asm2wasm-main.cpp b/src/asm2wasm-main.cpp index aca9434bb..d31413695 100644 --- a/src/asm2wasm-main.cpp +++ b/src/asm2wasm-main.cpp @@ -35,7 +35,7 @@ int main(int argc, char **argv) { Ref asmjs = builder.parseToplevel(input); if (debug) std::cerr << "wasming...\n"; - Module wasm; + AllocatingModule wasm; wasm.memory.initial = wasm.memory.max = 16*1024*1024; // we would normally receive this from the compiler Asm2WasmBuilder asm2wasm(wasm, pre.memoryGrowth); asm2wasm.processAsm(asmjs); -- cgit v1.2.3