diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/wasm-printing.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/wasm-printing.h b/src/wasm-printing.h index d7868d52c..6d8ed7c8a 100644 --- a/src/wasm-printing.h +++ b/src/wasm-printing.h @@ -33,5 +33,17 @@ extern std::ostream& printWasm(Expression* expression, std::ostream& o); } +namespace std { + +std::ostream& operator<<(std::ostream& o, wasm::Module* module) { + return wasm::printWasm(module, o); +} + +std::ostream& operator<<(std::ostream& o, wasm::Expression* expression) { + return wasm::printWasm(expression, o); +} + +} + #endif |