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/PickLoadSigns.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/PickLoadSigns.cpp')
-rw-r--r-- | src/passes/PickLoadSigns.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/passes/PickLoadSigns.cpp b/src/passes/PickLoadSigns.cpp index 6e44fddfe..6ead0cc4e 100644 --- a/src/passes/PickLoadSigns.cpp +++ b/src/passes/PickLoadSigns.cpp @@ -25,7 +25,7 @@ namespace wasm { // help remove the most sign/unsign operations // unsigned, then it could be either -struct PickLoadSigns : public WalkerPass<ExpressionStackWalker<PickLoadSigns, Visitor<PickLoadSigns>>> { +struct PickLoadSigns : public WalkerPass<ExpressionStackWalker<PickLoadSigns>> { bool isFunctionParallel() override { return true; } Pass* create() override { return new PickLoadSigns; } @@ -45,7 +45,7 @@ struct PickLoadSigns : public WalkerPass<ExpressionStackWalker<PickLoadSigns, Vi // prepare usages.resize(func->getNumLocals()); // walk - ExpressionStackWalker<PickLoadSigns, Visitor<PickLoadSigns>>::doWalkFunction(func); + ExpressionStackWalker<PickLoadSigns>::doWalkFunction(func); // optimize based on the info we saw for (auto& pair : loads) { auto* load = pair.first; |