summaryrefslogtreecommitdiff
path: root/src/pass.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/pass.h')
-rw-r--r--src/pass.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/pass.h b/src/pass.h
index 53b486e41..5ff650a77 100644
--- a/src/pass.h
+++ b/src/pass.h
@@ -156,6 +156,7 @@ private:
// Prints out a module
class Printer : public Pass {
+protected:
std::ostream& o;
public:
@@ -165,6 +166,15 @@ public:
void run(PassRunner* runner, Module* module) override;
};
+// Prints out a minified module
+class MinifiedPrinter : public Printer {
+public:
+ MinifiedPrinter() : Printer() {}
+ MinifiedPrinter(std::ostream& o) : Printer(o) {}
+
+ void run(PassRunner* runner, Module* module) override;
+};
+
} // namespace wasm
#endif // wasm_pass_h