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/passes/Print.cpp | |
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/passes/Print.cpp')
-rw-r--r-- | src/passes/Print.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
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); |