summaryrefslogtreecommitdiff
path: root/src/wasm/wasm-io.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm/wasm-io.cpp')
-rw-r--r--src/wasm/wasm-io.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm/wasm-io.cpp b/src/wasm/wasm-io.cpp
index 79687d469..2fb4af838 100644
--- a/src/wasm/wasm-io.cpp
+++ b/src/wasm/wasm-io.cpp
@@ -121,7 +121,7 @@ void ModuleReader::readStdin(Module& wasm, std::string sourceMapFilename) {
#define DEBUG_TYPE "writer"
void ModuleWriter::writeText(Module& wasm, Output& output) {
- WasmPrinter::printModule(&wasm, output.getStream());
+ output.getStream() << wasm;
}
void ModuleWriter::writeText(Module& wasm, std::string filename) {