From 3ddf9405cf887c1e0e0034b364c453e7c31acf4c Mon Sep 17 00:00:00 2001 From: jgravelle-google Date: Thu, 23 Feb 2017 10:22:02 -0800 Subject: Default Walker subclasses to using Visitor (#921) Most module walkers use PostWalker>, let that pattern be expressed as simply PostWalker --- src/passes/CodePushing.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/passes/CodePushing.cpp') 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> { +struct LocalAnalyzer : public PostWalker { std::vector sfa; std::vector numSets; std::vector numGets; @@ -216,7 +216,7 @@ private: std::unordered_map pushableEffects; }; -struct CodePushing : public WalkerPass>> { +struct CodePushing : public WalkerPass> { bool isFunctionParallel() override { return true; } Pass* create() override { return new CodePushing; } -- cgit v1.2.3