summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/pass.h9
-rw-r--r--src/passes/Print.cpp9
2 files changed, 9 insertions, 9 deletions
diff --git a/src/pass.h b/src/pass.h
index 5ff650a77..41ef30b90 100644
--- a/src/pass.h
+++ b/src/pass.h
@@ -166,15 +166,6 @@ 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
diff --git a/src/passes/Print.cpp b/src/passes/Print.cpp
index 051e6a313..3c3cdd659 100644
--- a/src/passes/Print.cpp
+++ b/src/passes/Print.cpp
@@ -502,6 +502,15 @@ void Printer::run(PassRunner* runner, Module* module) {
static RegisterPass<Printer> registerPass("print", "print in s-expression format");
+// 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;
+};
+
void MinifiedPrinter::run(PassRunner* runner, Module* module) {
PrintSExpression print(o, true);
print.visitModule(module);