Skip to content

Commit 526ef65

Browse files
committed
add debug param for SExpressionWasmBuilder
1 parent cebc941 commit 526ef65

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/wasm-as.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ int main(int argc, const char *argv[]) {
4949

5050
if (options.debug) std::cerr << "w-parsing..." << std::endl;
5151
AllocatingModule wasm;
52-
SExpressionWasmBuilder builder(wasm, *root[0], [&]() { abort(); });
52+
SExpressionWasmBuilder builder(wasm, *root[0], [&]() { abort(); }, false);
5353

5454
if (options.debug) std::cerr << "binarification..." << std::endl;
5555
BufferWithRandomAccess buffer(options.debug);

src/wasm-js.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ extern "C" void EMSCRIPTEN_KEEPALIVE load_s_expr2wasm(char *input) {
132132
sExpressionWasmBuilder = new SExpressionWasmBuilder(*module, *root[0], [&]() {
133133
std::cerr << "error in parsing s-expressions to wasm\n";
134134
abort();
135-
});
135+
}, false);
136136

137137
finalizeModule();
138138
}

src/wasm2asm-main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ int main(int argc, const char *argv[]) {
5252

5353
if (options.debug) std::cerr << "w-parsing..." << std::endl;
5454
AllocatingModule wasm;
55-
SExpressionWasmBuilder builder(wasm, *root[0], [&]() { abort(); });
55+
SExpressionWasmBuilder builder(wasm, *root[0], [&]() { abort(); }, false);
5656

5757
if (options.debug) std::cerr << "asming..." << std::endl;
5858
Wasm2AsmBuilder wasm2asm(options.debug);

0 commit comments

Comments
 (0)