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/OptimizeInstructions.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/passes/OptimizeInstructions.cpp') diff --git a/src/passes/OptimizeInstructions.cpp b/src/passes/OptimizeInstructions.cpp index 79c01dee7..02475e4dc 100644 --- a/src/passes/OptimizeInstructions.cpp +++ b/src/passes/OptimizeInstructions.cpp @@ -274,7 +274,7 @@ struct LocalInfo { Index signExtedBits; }; -struct LocalScanner : PostWalker> { +struct LocalScanner : PostWalker { std::vector& localInfo; LocalScanner(std::vector& localInfo) : localInfo(localInfo) {} @@ -292,7 +292,7 @@ struct LocalScanner : PostWalker> { } } // walk - PostWalker>::doWalkFunction(func); + PostWalker::doWalkFunction(func); // finalize for (Index i = 0; i < func->getNumLocals(); i++) { auto& info = localInfo[i]; @@ -725,7 +725,7 @@ private: c->value = Literal(int32_t(0)); } // remove added/subbed zeros - struct ZeroRemover : public PostWalker> { + struct ZeroRemover : public PostWalker { // TODO: we could save the binarys and costs we drop, and reuse them later PassOptions& passOptions; -- cgit v1.2.3