diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-02-17 17:46:54 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-02-17 17:46:54 -0800 |
commit | 849322a1135479f79f7d94b8b032486efe7955a8 (patch) | |
tree | 8f813863d148fbbab6faabd42324bebbad90db34 /test/example/find_div0s.cpp | |
parent | 252962faba97b68684a470447c7202cf27ad8c05 (diff) | |
parent | 10b929720a8701ef2a960f5b45e39d7a999cca41 (diff) | |
download | binaryen-849322a1135479f79f7d94b8b032486efe7955a8.tar.gz binaryen-849322a1135479f79f7d94b8b032486efe7955a8.tar.bz2 binaryen-849322a1135479f79f7d94b8b032486efe7955a8.zip |
Merge pull request #200 from WebAssembly/print-pass
Move printing to a pass
Diffstat (limited to 'test/example/find_div0s.cpp')
-rw-r--r-- | test/example/find_div0s.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/example/find_div0s.cpp b/test/example/find_div0s.cpp index cb29043a7..dc2872edc 100644 --- a/test/example/find_div0s.cpp +++ b/test/example/find_div0s.cpp @@ -8,6 +8,7 @@ #include <ostream> #include <wasm.h> +#include <wasm-printing.h> #include <wasm-s-parser.h> using namespace wasm; @@ -34,7 +35,7 @@ int main() { SExpressionWasmBuilder builder(module, *root[0], [&]() { abort(); }); // Print it out - std::cout << module; + printWasm(&module, std::cout); // Search it for divisions by zero: Walk the module, looking for // that operation. |