diff options
Diffstat (limited to 'src/passes/InstrumentLocals.cpp')
-rw-r--r-- | src/passes/InstrumentLocals.cpp | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/src/passes/InstrumentLocals.cpp b/src/passes/InstrumentLocals.cpp index ae35ec2d1..3e3be6244 100644 --- a/src/passes/InstrumentLocals.cpp +++ b/src/passes/InstrumentLocals.cpp @@ -75,33 +75,33 @@ struct InstrumentLocals : public WalkerPass<PostWalker<InstrumentLocals>> { Builder builder(*getModule()); Name import; switch (curr->type) { - case i32: + case Type::i32: import = get_i32; break; - case i64: + case Type::i64: return; // TODO - case f32: + case Type::f32: import = get_f32; break; - case f64: + case Type::f64: import = get_f64; break; - case v128: + case Type::v128: assert(false && "v128 not implemented yet"); - case funcref: + case Type::funcref: import = get_funcref; break; - case anyref: + case Type::anyref: import = get_anyref; break; - case nullref: + case Type::nullref: import = get_nullref; break; - case exnref: + case Type::exnref: import = get_exnref; break; - case none: - case unreachable: + case Type::none: + case Type::unreachable: WASM_UNREACHABLE("unexpected type"); } replaceCurrent( @@ -123,34 +123,34 @@ struct InstrumentLocals : public WalkerPass<PostWalker<InstrumentLocals>> { Builder builder(*getModule()); Name import; switch (curr->value->type) { - case i32: + case Type::i32: import = set_i32; break; - case i64: + case Type::i64: return; // TODO - case f32: + case Type::f32: import = set_f32; break; - case f64: + case Type::f64: import = set_f64; break; - case v128: + case Type::v128: assert(false && "v128 not implemented yet"); - case funcref: + case Type::funcref: import = set_funcref; break; - case anyref: + case Type::anyref: import = set_anyref; break; - case nullref: + case Type::nullref: import = set_nullref; break; - case exnref: + case Type::exnref: import = set_exnref; break; - case unreachable: + case Type::unreachable: return; // nothing to do here - case none: + case Type::none: WASM_UNREACHABLE("unexpected type"); } curr->value = |