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/binaryen-shell.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/binaryen-shell.cpp') diff --git a/src/binaryen-shell.cpp b/src/binaryen-shell.cpp index d54552976..9c1a05447 100644 --- a/src/binaryen-shell.cpp +++ b/src/binaryen-shell.cpp @@ -234,7 +234,7 @@ int main(int argc, char **argv) { size_t i = 0; while (i < root.size()) { if (debug) std::cerr << "parsing s-expressions to wasm...\n"; - Module wasm; + AllocatingModule wasm; SExpressionWasmBuilder builder(wasm, *root[i], [&]() { abort(); }); i++; @@ -280,7 +280,7 @@ int main(int argc, char **argv) { std::cerr << curr << '\n'; if (id == ASSERT_INVALID) { // a module invalidity test - Module wasm; + AllocatingModule wasm; bool invalid = false; jmp_buf trapState; std::unique_ptr builder; -- cgit v1.2.3