diff options
Diffstat (limited to 'src/passes/pass.cpp')
-rw-r--r-- | src/passes/pass.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/passes/pass.cpp b/src/passes/pass.cpp index 58083c43b..64e48680e 100644 --- a/src/passes/pass.cpp +++ b/src/passes/pass.cpp @@ -561,7 +561,7 @@ void PassRunner::run() { // pass breaks it, so we can print the before and after std::stringstream moduleBefore; if (passDebug == 2 && !isNested) { - WasmPrinter::printModule(wasm, moduleBefore); + moduleBefore << *wasm << '\n'; } // prepare to run std::cerr << "[PassRunner] running pass: " << pass->name << "... "; @@ -584,7 +584,7 @@ void PassRunner::run() { // validate, ignoring the time std::cerr << "[PassRunner] (validating)\n"; if (!WasmValidator().validate(*wasm, validationFlags)) { - WasmPrinter::printModule(wasm); + std::cout << *wasm << '\n'; if (passDebug >= 2) { Fatal() << "Last pass (" << pass->name << ") broke validation. Here is the module before: \n" @@ -606,7 +606,7 @@ void PassRunner::run() { if (options.validate && !isNested) { std::cerr << "[PassRunner] (final validation)\n"; if (!WasmValidator().validate(*wasm, validationFlags)) { - WasmPrinter::printModule(wasm); + std::cout << *wasm << '\n'; Fatal() << "final module does not validate\n"; } } |