diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-04-18 11:52:07 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-04-18 11:52:07 -0700 |
commit | 5494c531db30145e7bf8745b46e9784967781616 (patch) | |
tree | 6fcee181299b67ffeb5e4191e9f0c26a3d06fbc0 /src/binaryen-shell.cpp | |
parent | a2b0849ab7e2ca0d6136c57db7321d20965b89f4 (diff) | |
download | binaryen-5494c531db30145e7bf8745b46e9784967781616.tar.gz binaryen-5494c531db30145e7bf8745b46e9784967781616.tar.bz2 binaryen-5494c531db30145e7bf8745b46e9784967781616.zip |
remove the AllocatingModule class, and just make Module have allocations. the distinction is not really that useful, and passes do need to allocate, so we would need to pass around AllocatingModules all around anyhow. (#361)
Diffstat (limited to 'src/binaryen-shell.cpp')
-rw-r--r-- | src/binaryen-shell.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/binaryen-shell.cpp b/src/binaryen-shell.cpp index 82094a697..12cda7a5d 100644 --- a/src/binaryen-shell.cpp +++ b/src/binaryen-shell.cpp @@ -74,7 +74,7 @@ static void verify_result(Literal a, Literal b) { } } -static void run_asserts(size_t* i, bool* checked, AllocatingModule* wasm, +static void run_asserts(size_t* i, bool* checked, Module* wasm, Element* root, std::unique_ptr<SExpressionWasmBuilder>* builder, Name entry) { @@ -112,7 +112,7 @@ static void run_asserts(size_t* i, bool* checked, AllocatingModule* wasm, std::cerr << curr << '\n'; if (id == ASSERT_INVALID) { // a module invalidity test - AllocatingModule wasm; + Module wasm; bool invalid = false; std::unique_ptr<SExpressionWasmBuilder> builder; try { @@ -217,7 +217,7 @@ int main(int argc, const char* argv[]) { IString id = curr[0]->str(); if (id == MODULE) { if (options.debug) std::cerr << "parsing s-expressions to wasm...\n"; - AllocatingModule wasm; + Module wasm; std::unique_ptr<SExpressionWasmBuilder> builder( new SExpressionWasmBuilder(wasm, *root[i], [&]() { abort(); })); i++; |