diff options
author | Alon Zakai <azakai@google.com> | 2022-11-29 09:23:05 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-29 09:23:05 -0800 |
commit | 83cceaca5c9ce53ba4115aa732e7196db67bc493 (patch) | |
tree | 6796ae9682e7e1db46f3ce3c354f10def34298bd /src/wasm/wasm-validator.cpp | |
parent | 17a698807c5b898abe9b1c98eab5f3f89bc1c877 (diff) | |
download | binaryen-83cceaca5c9ce53ba4115aa732e7196db67bc493.tar.gz binaryen-83cceaca5c9ce53ba4115aa732e7196db67bc493.tar.bz2 binaryen-83cceaca5c9ce53ba4115aa732e7196db67bc493.zip |
[NFC] Refactor GlobalTypeRewriter to split out the type mapping logic (#5295)
The logic that is split out into mapTypes gets a map of old type => new type and then
updates the module to replace the old with the new.
This will be useful in a future pass to merge types. We will tell it to map the types to
be merged with the types we want to merge them into.
This removes an assert on all types being in the map to allow some of them not to be.
(the new pass that will use this will only want to map some types).
Diffstat (limited to 'src/wasm/wasm-validator.cpp')
0 files changed, 0 insertions, 0 deletions