From dbb5f32bafcf3c8f51eefb95e6c298ce6b9ac8cc Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Wed, 17 Feb 2016 12:44:14 -0800 Subject: move printing to a pass --- src/wasm-dis.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/wasm-dis.cpp') diff --git a/src/wasm-dis.cpp b/src/wasm-dis.cpp index 7fb3ed2d5..c7ebf8861 100644 --- a/src/wasm-dis.cpp +++ b/src/wasm-dis.cpp @@ -18,6 +18,7 @@ // wasm2asm console tool // +#include "pass.h" #include "support/colors.h" #include "support/command-line.h" #include "support/file.h" @@ -49,7 +50,8 @@ int main(int argc, const char *argv[]) { if (options.debug) std::cerr << "Printing..." << std::endl; Output output(options.extra["output"], options.debug); - output << wasm << std::endl; + printWasm(&wasm, output.getStream()); + output << '\n'; if (options.debug) std::cerr << "Done." << std::endl; } -- cgit v1.2.3