summaryrefslogtreecommitdiff
path: root/src/wasm-dis.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm-dis.cpp')
-rw-r--r--src/wasm-dis.cpp4
1 files changed, 3 insertions, 1 deletions
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;
}