diff options
author | Michael <mbebenita@Michaels-MacBook-Pro-4.local> | 2016-02-23 15:06:36 -0800 |
---|---|---|
committer | Michael <mbebenita@Michaels-MacBook-Pro-4.local> | 2016-02-23 15:06:36 -0800 |
commit | 654feec8e99413bd989ede7143fcf5a9c67c9db6 (patch) | |
tree | 67dc50416f3a286d1d0a2687523209e0aac1d298 /src | |
parent | 8c12e60328a9491104df2937c1528b354141d5d3 (diff) | |
download | binaryen-654feec8e99413bd989ede7143fcf5a9c67c9db6.tar.gz binaryen-654feec8e99413bd989ede7143fcf5a9c67c9db6.tar.bz2 binaryen-654feec8e99413bd989ede7143fcf5a9c67c9db6.zip |
Remove MinifiedPrinter from the header file.
Diffstat (limited to 'src')
-rw-r--r-- | src/pass.h | 9 | ||||
-rw-r--r-- | src/passes/Print.cpp | 9 |
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); |