diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-06-03 14:55:29 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-06-03 14:55:29 -0700 |
commit | f6b5c1e5c1c0de26fd078d336782508dd0186820 (patch) | |
tree | 8711b60b41ef1d9e5ded89486073df526a99ada7 /src/passes/Print.cpp | |
parent | b76818e23eab75876f1981800ef12d55ce2f579b (diff) | |
download | binaryen-f6b5c1e5c1c0de26fd078d336782508dd0186820.tar.gz binaryen-f6b5c1e5c1c0de26fd078d336782508dd0186820.tar.bz2 binaryen-f6b5c1e5c1c0de26fd078d336782508dd0186820.zip |
move function parallelism to pass and pass runner, which allows more efficient parallel execution (#564)
Diffstat (limited to 'src/passes/Print.cpp')
-rw-r--r-- | src/passes/Print.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/passes/Print.cpp b/src/passes/Print.cpp index 04b1d0edb..792d35457 100644 --- a/src/passes/Print.cpp +++ b/src/passes/Print.cpp @@ -628,9 +628,9 @@ static RegisterPass<Printer> registerPass("print", "print in s-expression format // Prints out a minified module class MinifiedPrinter : public Printer { - public: +public: MinifiedPrinter() : Printer() {} - MinifiedPrinter(std::ostream& o) : Printer(o) {} + MinifiedPrinter(std::ostream* o) : Printer(o) {} void run(PassRunner* runner, Module* module) override { PrintSExpression print(o); @@ -644,9 +644,9 @@ static RegisterPass<MinifiedPrinter> registerMinifyPass("print-minified", "print // Prints out a module withough elision, i.e., the full ast class FullPrinter : public Printer { - public: +public: FullPrinter() : Printer() {} - FullPrinter(std::ostream& o) : Printer(o) {} + FullPrinter(std::ostream* o) : Printer(o) {} void run(PassRunner* runner, Module* module) override { PrintSExpression print(o); |