From 8c12e60328a9491104df2937c1528b354141d5d3 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 22 Feb 2016 15:40:05 -0800 Subject: Whitespace removal. --- src/pass.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/pass.h') 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 -- cgit v1.2.3 From 654feec8e99413bd989ede7143fcf5a9c67c9db6 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 23 Feb 2016 15:06:36 -0800 Subject: Remove MinifiedPrinter from the header file. --- src/pass.h | 9 --------- src/passes/Print.cpp | 9 +++++++++ 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'src/pass.h') 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 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); -- cgit v1.2.3