diff options
Diffstat (limited to 'src/tools/spec-wrapper.h')
-rw-r--r-- | src/tools/spec-wrapper.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/tools/spec-wrapper.h b/src/tools/spec-wrapper.h index f59291e55..2bad602f2 100644 --- a/src/tools/spec-wrapper.h +++ b/src/tools/spec-wrapper.h @@ -33,29 +33,29 @@ static std::string generateSpecWrapper(Module& wasm) { for (Type param : func->sig.params.expand()) { // zeros in arguments TODO more? switch (param) { - case i32: + case Type::i32: ret += "(i32.const 0)"; break; - case i64: + case Type::i64: ret += "(i64.const 0)"; break; - case f32: + case Type::f32: ret += "(f32.const 0)"; break; - case f64: + case Type::f64: ret += "(f64.const 0)"; break; - case v128: + case Type::v128: ret += "(v128.const i32x4 0 0 0 0)"; break; - case funcref: - case anyref: - case nullref: - case exnref: + case Type::funcref: + case Type::anyref: + case Type::nullref: + case Type::exnref: ret += "(ref.null)"; break; - case none: - case unreachable: + case Type::none: + case Type::unreachable: WASM_UNREACHABLE("unexpected type"); } ret += " "; |