diff options
author | jgravelle-google <jgravelle@google.com> | 2017-02-23 10:22:02 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-23 10:22:02 -0800 |
commit | 3ddf9405cf887c1e0e0034b364c453e7c31acf4c (patch) | |
tree | 1ec77b7058bbc960aadf5e0e8fad39676ea9b930 /src/passes/CodePushing.cpp | |
parent | 7e133b55c7babaabb83fc0f665b4a60022d4b8fb (diff) | |
download | binaryen-3ddf9405cf887c1e0e0034b364c453e7c31acf4c.tar.gz binaryen-3ddf9405cf887c1e0e0034b364c453e7c31acf4c.tar.bz2 binaryen-3ddf9405cf887c1e0e0034b364c453e7c31acf4c.zip |
Default Walker subclasses to using Visitor<SubType> (#921)
Most module walkers use PostWalker<T, Visitor<T>>, let that pattern be
expressed as simply PostWalker<T>
Diffstat (limited to 'src/passes/CodePushing.cpp')
-rw-r--r-- | src/passes/CodePushing.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/passes/CodePushing.cpp b/src/passes/CodePushing.cpp index 55b15ac9d..2876228ee 100644 --- a/src/passes/CodePushing.cpp +++ b/src/passes/CodePushing.cpp @@ -34,7 +34,7 @@ namespace wasm { // This is a much weaker property than SSA, obviously, but together with // our implicit dominance properties in the structured AST is quite useful. // -struct LocalAnalyzer : public PostWalker<LocalAnalyzer, Visitor<LocalAnalyzer>> { +struct LocalAnalyzer : public PostWalker<LocalAnalyzer> { std::vector<bool> sfa; std::vector<Index> numSets; std::vector<Index> numGets; @@ -216,7 +216,7 @@ private: std::unordered_map<SetLocal*, EffectAnalyzer> pushableEffects; }; -struct CodePushing : public WalkerPass<PostWalker<CodePushing, Visitor<CodePushing>>> { +struct CodePushing : public WalkerPass<PostWalker<CodePushing>> { bool isFunctionParallel() override { return true; } Pass* create() override { return new CodePushing; } |