From e8f9d207427bda2f6e22c28ff0210b294b1f70e1 Mon Sep 17 00:00:00 2001 From: Thomas Lively <7121787+tlively@users.noreply.github.com> Date: Tue, 7 Jan 2020 11:16:44 -0800 Subject: [NFC] Enforce use of `Type::` on type names (#2434) --- src/wasm-binary.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src/wasm-binary.h') 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); -- cgit v1.2.3