summaryrefslogtreecommitdiff
path: root/src/passes/OptimizeAddedConstants.cpp
diff options
context:
space:
mode:
authorThomas Lively <7121787+tlively@users.noreply.github.com>2021-04-29 16:04:30 -0700
committerGitHub <noreply@github.com>2021-04-29 16:04:30 -0700
commitea8ebefa551b8e6e2d4baa759df8c531cfd842d8 (patch)
treeb066fd47d887a77beea872b9840827d7c3ba4abe /src/passes/OptimizeAddedConstants.cpp
parentb9c7497d1caae695ac5582590d73ad61abd7850f (diff)
downloadbinaryen-ea8ebefa551b8e6e2d4baa759df8c531cfd842d8.tar.gz
binaryen-ea8ebefa551b8e6e2d4baa759df8c531cfd842d8.tar.bz2
binaryen-ea8ebefa551b8e6e2d4baa759df8c531cfd842d8.zip
Use standard type traversal in module-utils.h (#3851)
Add new public `getHeapTypeChildren` methods to Type and HeapType, implemented in using the standard machinery from #3844, and use them to simplify `ModuleUtils::collectHeapTypes`. Now that the type traversal code in wasm-type.cpp is not just used in canonicalization, move it to a more appropriate place in the file. Also, since the only users of `HeapTypePathWalker` were using it to visit top-level children only, replace that with a more specialized `HeapTypeChildWalker` to reduce code duplication.
Diffstat (limited to 'src/passes/OptimizeAddedConstants.cpp')
0 files changed, 0 insertions, 0 deletions