diff options
author | Alon Zakai <alonzakai@gmail.com> | 2017-02-23 12:59:42 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-23 12:59:42 -0800 |
commit | db6f2bf0fa8cd1913bd498ca17641e2bda44a263 (patch) | |
tree | 24f725c2bfedd82fbd07d31204a9b5cafe9091bc /src/passes/DuplicateFunctionElimination.cpp | |
parent | 7c183a6ec06fa32098c9eb61993f857d821e0afe (diff) | |
download | binaryen-db6f2bf0fa8cd1913bd498ca17641e2bda44a263.tar.gz binaryen-db6f2bf0fa8cd1913bd498ca17641e2bda44a263.tar.bz2 binaryen-db6f2bf0fa8cd1913bd498ca17641e2bda44a263.zip |
fix BINARYEN_PASS_DEBUG option (#908)
* fix BINARYEN_PASS_DEBUG option
* Add isNested property to passRunner
Diffstat (limited to 'src/passes/DuplicateFunctionElimination.cpp')
-rw-r--r-- | src/passes/DuplicateFunctionElimination.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/passes/DuplicateFunctionElimination.cpp b/src/passes/DuplicateFunctionElimination.cpp index 05eaadfe5..5d55c7318 100644 --- a/src/passes/DuplicateFunctionElimination.cpp +++ b/src/passes/DuplicateFunctionElimination.cpp @@ -89,6 +89,7 @@ struct DuplicateFunctionElimination : public Pass { hashes[func.get()] = 0; // ensure an entry for each function - we must not modify the map shape in parallel, just the values } PassRunner hasherRunner(module); + hasherRunner.setIsNested(true); hasherRunner.add<FunctionHasher>(&hashes); hasherRunner.run(); // Find hash-equal groups @@ -131,6 +132,7 @@ struct DuplicateFunctionElimination : public Pass { module->updateMaps(); // replace direct calls PassRunner replacerRunner(module); + replacerRunner.setIsNested(true); replacerRunner.add<FunctionReplacer>(&replacements); replacerRunner.run(); // replace in table |