summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/wasm2asm-main.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/wasm2asm-main.cpp b/src/wasm2asm-main.cpp
index 4a134e576..85fa58179 100644
--- a/src/wasm2asm-main.cpp
+++ b/src/wasm2asm-main.cpp
@@ -44,9 +44,11 @@ int main(int argc, char **argv) {
Wasm2AsmBuilder wasm2asm;
Ref asmjs = wasm2asm.processWasm(&wasm);
- if (debug) std::cerr << "a-printing...\n";
- asmjs->stringify(std::cout);
- std::cout << '\n';
+ if (debug) {
+ std::cerr << "a-printing...\n";
+ asmjs->stringify(std::cout);
+ std::cout << '\n';
+ }
if (debug) std::cerr << "j-printing...\n";
JSPrinter jser(true, true, asmjs);