diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-05-05 09:31:19 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-05-05 09:32:06 -0700 |
commit | aa1cf3d0c20d5bc6f98ac3ab96c06f0ff6c2eb61 (patch) | |
tree | 5a0085eef3c8dcc4a7506858fae73ed1b8a99d3e /src/pass.cpp | |
parent | adda43ea1e59f401d874cfcb41c9ffb17f87f44d (diff) | |
download | binaryen-aa1cf3d0c20d5bc6f98ac3ab96c06f0ff6c2eb61.tar.gz binaryen-aa1cf3d0c20d5bc6f98ac3ab96c06f0ff6c2eb61.tar.bz2 binaryen-aa1cf3d0c20d5bc6f98ac3ab96c06f0ff6c2eb61.zip |
simplify PassRunner API, get a module directly
Diffstat (limited to 'src/pass.cpp')
-rw-r--r-- | src/pass.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pass.cpp b/src/pass.cpp index 5c4f510f8..e4cc35554 100644 --- a/src/pass.cpp +++ b/src/pass.cpp @@ -68,7 +68,7 @@ void PassRunner::addDefaultOptimizationPasses() { add("optimize-instructions"); } -void PassRunner::run(Module* module) { +void PassRunner::run() { std::chrono::high_resolution_clock::time_point beforeEverything; size_t padding = 0; if (debug) { @@ -88,7 +88,7 @@ void PassRunner::run(Module* module) { } before = std::chrono::high_resolution_clock::now(); } - pass->run(this, module); + pass->run(this, wasm); if (debug) { auto after = std::chrono::high_resolution_clock::now(); std::chrono::duration<double> diff = after - before; |