summaryrefslogtreecommitdiff
path: root/scripts/foreach.py
diff options
context:
space:
mode:
authorThomas Lively <tlively@google.com>2024-08-19 09:23:55 -0700
committerGitHub <noreply@github.com>2024-08-19 09:23:55 -0700
commit0b05a3ebc7feedfd28f54b6486cf3f2ec1864edb (patch)
tree530a4d6a6ccd4375f757a5b87f0ba16a4fbf6729 /scripts/foreach.py
parente058bfbdf31c7b59df8ab62a9ebaedac45521c12 (diff)
downloadbinaryen-0b05a3ebc7feedfd28f54b6486cf3f2ec1864edb.tar.gz
binaryen-0b05a3ebc7feedfd28f54b6486cf3f2ec1864edb.tar.bz2
binaryen-0b05a3ebc7feedfd28f54b6486cf3f2ec1864edb.zip
[NFC] Use HeapType::getKind more broadly (#6846)
Replace code that checked `isStruct()`, `isArray()`, etc. in sequence with uses of `HeapType::getKind()` and switch statements. This will make it easier to find the code that needs updating if/when we add new heap type kinds in the future. It also makes it much easier to find code that already needs updating to handle continuation types by grepping for "TODO: cont".
Diffstat (limited to 'scripts/foreach.py')
0 files changed, 0 insertions, 0 deletions