diff options
author | Thomas Lively <7121787+tlively@users.noreply.github.com> | 2020-01-07 11:16:44 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-07 11:16:44 -0800 |
commit | e8f9d207427bda2f6e22c28ff0210b294b1f70e1 (patch) | |
tree | 503b20fb06274e38af7e25e3a1a4106827c52693 /src/wasm-binary.h | |
parent | f73b40c7873dbd2dd46a962f3afe5b97a7fc8b0a (diff) | |
download | binaryen-e8f9d207427bda2f6e22c28ff0210b294b1f70e1.tar.gz binaryen-e8f9d207427bda2f6e22c28ff0210b294b1f70e1.tar.bz2 binaryen-e8f9d207427bda2f6e22c28ff0210b294b1f70e1.zip |
[NFC] Enforce use of `Type::` on type names (#2434)
Diffstat (limited to 'src/wasm-binary.h')
-rw-r--r-- | src/wasm-binary.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/wasm-binary.h b/src/wasm-binary.h index f019d0792..6f8aa5744 100644 --- a/src/wasm-binary.h +++ b/src/wasm-binary.h @@ -905,37 +905,37 @@ inline S32LEB binaryType(Type type) { int ret = 0; switch (type) { // None only used for block signatures. TODO: Separate out? - case none: + case Type::none: ret = BinaryConsts::EncodedType::Empty; break; - case i32: + case Type::i32: ret = BinaryConsts::EncodedType::i32; break; - case i64: + case Type::i64: ret = BinaryConsts::EncodedType::i64; break; - case f32: + case Type::f32: ret = BinaryConsts::EncodedType::f32; break; - case f64: + case Type::f64: ret = BinaryConsts::EncodedType::f64; break; - case v128: + case Type::v128: ret = BinaryConsts::EncodedType::v128; break; - case funcref: + case Type::funcref: ret = BinaryConsts::EncodedType::funcref; break; - case anyref: + case Type::anyref: ret = BinaryConsts::EncodedType::anyref; break; - case nullref: + case Type::nullref: ret = BinaryConsts::EncodedType::nullref; break; - case exnref: + case Type::exnref: ret = BinaryConsts::EncodedType::exnref; break; - case unreachable: + case Type::unreachable: WASM_UNREACHABLE("unexpected type"); } return S32LEB(ret); |