diff options
author | Sam Clegg <sbc@chromium.org> | 2019-11-18 15:18:50 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-18 15:18:50 -0800 |
commit | 43fef7d1c31f5b99ff9f1e79ce368fe139414882 (patch) | |
tree | c9aabd04277814816f6f9c9655cf74613bfa49ed /src/binary.h | |
parent | cc1edc0c12d2cf72aec34ae246ebd43bd681671c (diff) | |
download | wabt-43fef7d1c31f5b99ff9f1e79ce368fe139414882.tar.gz wabt-43fef7d1c31f5b99ff9f1e79ce368fe139414882.tar.bz2 wabt-43fef7d1c31f5b99ff9f1e79ce368fe139414882.zip |
Switch to treating segment flags as a bitfield. NFC (#1232)
This is in preparation for updating to latest version reference-types
proposal where there is an additional flag and they can be combined.
See: https://github.com/WebAssembly/bulk-memory-operations/issues/98
Also, add ERROR_IF to binary-reader.cc as logical corollary to the
existing ERROR_UNLESS.
Diffstat (limited to 'src/binary.h')
-rw-r--r-- | src/binary.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/binary.h b/src/binary.h index 7302a8ad..01c9b95a 100644 --- a/src/binary.h +++ b/src/binary.h @@ -75,12 +75,6 @@ enum class NameSectionSubsection { Local = 2, }; -enum class SegmentFlags : uint8_t { - IndexZero = 0, - Passive = 1, - IndexOther = 2, -}; - } // namespace wabt #endif /* WABT_BINARY_H_ */ |