diff options
author | Alon Zakai <azakai@google.com> | 2021-09-30 17:54:05 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-30 17:54:05 -0700 |
commit | 65bcde2c30e82047a892332b95b114bc86f89614 (patch) | |
tree | fad936a8ed9b3275da50917bcebcbc235ab82600 /src/passes/Print.cpp | |
parent | ce8cdac461db4e0a3e178a59f8eb1447bfee51e1 (diff) | |
download | binaryen-65bcde2c30e82047a892332b95b114bc86f89614.tar.gz binaryen-65bcde2c30e82047a892332b95b114bc86f89614.tar.bz2 binaryen-65bcde2c30e82047a892332b95b114bc86f89614.zip |
Implement table.get (#4195)
Adds the part of the spec test suite that this passes (without table.set we
can't do it all).
Diffstat (limited to 'src/passes/Print.cpp')
-rw-r--r-- | src/passes/Print.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/passes/Print.cpp b/src/passes/Print.cpp index 6a41961a2..4d6207b01 100644 --- a/src/passes/Print.cpp +++ b/src/passes/Print.cpp @@ -1842,6 +1842,10 @@ struct PrintExpressionContents printName(curr->func, o); } void visitRefEq(RefEq* curr) { printMedium(o, "ref.eq"); } + void visitTableGet(TableGet* curr) { + printMedium(o, "table.get "); + printName(curr->table, o); + } void visitTry(Try* curr) { printMedium(o, "try"); if (curr->name.is()) { |