summaryrefslogtreecommitdiff
path: root/src/passes/Print.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/passes/Print.cpp')
-rw-r--r--src/passes/Print.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/passes/Print.cpp b/src/passes/Print.cpp
index ce70f50fd..3f22265eb 100644
--- a/src/passes/Print.cpp
+++ b/src/passes/Print.cpp
@@ -3442,6 +3442,14 @@ printStackIR(StackIR* ir, std::ostream& o, Function* func) {
return o;
}
+std::ostream& printStackIR(std::ostream& o, Module* module) {
+ wasm::PassRunner runner(module);
+ runner.add("generate-stack-ir");
+ runner.add(std::make_unique<PrintStackIR>(&o));
+ runner.run();
+ return o;
+}
+
} // namespace wasm
namespace std {