diff options
author | Thomas Lively <tlively@google.com> | 2024-06-14 14:47:27 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-14 14:47:27 -0700 |
commit | eacea8060a29acefdd9cb45fdf95d73afa76c656 (patch) | |
tree | acd001c7102a26536f9c1f775add7c899ccf9d88 /scripts/fuzz_passes.py | |
parent | 027128dccf76692ca4e000c6dbb489b348b12c73 (diff) | |
download | binaryen-eacea8060a29acefdd9cb45fdf95d73afa76c656.tar.gz binaryen-eacea8060a29acefdd9cb45fdf95d73afa76c656.tar.bz2 binaryen-eacea8060a29acefdd9cb45fdf95d73afa76c656.zip |
[Parser][NFC] Make typeidx and maybeTypeidx return consistent types (#6663)
Since the BasicHeapTypes are in an enum, calling HeapType methods on them
requires something like `HeapType(HeapType::func).someMethod()`. This is
unnecessarily verbose, so add a new `HeapTypes` namespace that contains
constexpr HeapType globals that can be used instead, shorting this to
`HeapTypes::func.someMethod()`.
Diffstat (limited to 'scripts/fuzz_passes.py')
0 files changed, 0 insertions, 0 deletions