diff options
Diffstat (limited to 'src/tools/wasm-shell.cpp')
-rw-r--r-- | src/tools/wasm-shell.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/tools/wasm-shell.cpp b/src/tools/wasm-shell.cpp index 6141b1a37..652b3a352 100644 --- a/src/tools/wasm-shell.cpp +++ b/src/tools/wasm-shell.cpp @@ -125,8 +125,9 @@ static void run_asserts(Name moduleName, while (*i < root->size()) { Element& curr = *(*root)[*i]; IString id = curr[0]->str(); - if (id == MODULE) + if (id == MODULE) { break; + } *checked = true; Colors::red(std::cerr); std::cerr << *i << '/' << (root->size() - 1); @@ -228,8 +229,9 @@ static void run_asserts(Name moduleName, } } } - if (id == ASSERT_TRAP) + if (id == ASSERT_TRAP) { assert(trapped); + } } *i += 1; } @@ -281,8 +283,9 @@ int main(int argc, const char* argv[]) { bool checked = false; try { - if (options.debug) + if (options.debug) { std::cerr << "parsing text to s-expressions...\n"; + } SExpressionParser parser(input.data()); Element& root = *parser.root; @@ -299,8 +302,9 @@ int main(int argc, const char* argv[]) { } IString id = curr[0]->str(); if (id == MODULE) { - if (options.debug) + if (options.debug) { std::cerr << "parsing s-expressions to wasm...\n"; + } Colors::green(std::cerr); std::cerr << "BUILDING MODULE [line: " << curr.line << "]\n"; Colors::normal(std::cerr); |