diff options
author | Alon Zakai <azakai@google.com> | 2021-01-21 22:09:47 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-21 14:09:47 -0800 |
commit | 3f4d3b3eff5d8112a9da3674a5f5eea696ca3c7d (patch) | |
tree | 30d3ddedf6ae2de10f56d6acea64f2b17640041b /src/binaryen-c.cpp | |
parent | 527e9f9ed76cee0baaa67e89569c282a3782be08 (diff) | |
download | binaryen-3f4d3b3eff5d8112a9da3674a5f5eea696ca3c7d.tar.gz binaryen-3f4d3b3eff5d8112a9da3674a5f5eea696ca3c7d.tar.bz2 binaryen-3f4d3b3eff5d8112a9da3674a5f5eea696ca3c7d.zip |
[GC] Add dataref type (#3500)
This is not 100% of everything, but is enough to get tests passing, which
includes full binary and text format support, getting all switches to compile
without error, and some additions to InstrumentLocals.
Diffstat (limited to 'src/binaryen-c.cpp')
-rw-r--r-- | src/binaryen-c.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/binaryen-c.cpp b/src/binaryen-c.cpp index f08b5f777..64813436e 100644 --- a/src/binaryen-c.cpp +++ b/src/binaryen-c.cpp @@ -78,6 +78,8 @@ BinaryenLiteral toBinaryenLiteral(Literal x) { break; case Type::i31ref: WASM_UNREACHABLE("TODO: i31ref"); + case Type::dataref: + WASM_UNREACHABLE("TODO: dataref"); case Type::none: case Type::unreachable: WASM_UNREACHABLE("unexpected type"); @@ -106,6 +108,8 @@ Literal fromBinaryenLiteral(BinaryenLiteral x) { return Literal::makeNull(Type(x.type)); case Type::i31ref: WASM_UNREACHABLE("TODO: i31ref"); + case Type::dataref: + WASM_UNREACHABLE("TODO: dataref"); case Type::none: case Type::unreachable: WASM_UNREACHABLE("unexpected type"); |