summaryrefslogtreecommitdiff
path: root/src/passes/Print.cpp
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-06-03 14:55:29 -0700
committerAlon Zakai <alonzakai@gmail.com>2016-06-03 14:55:29 -0700
commitf6b5c1e5c1c0de26fd078d336782508dd0186820 (patch)
tree8711b60b41ef1d9e5ded89486073df526a99ada7 /src/passes/Print.cpp
parentb76818e23eab75876f1981800ef12d55ce2f579b (diff)
downloadbinaryen-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.cpp8
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);