summaryrefslogtreecommitdiff
path: root/src/passes/Print.cpp
diff options
context:
space:
mode:
authorThomas Lively <tlively@google.com>2023-09-13 20:02:26 -0700
committerGitHub <noreply@github.com>2023-09-13 20:02:26 -0700
commit2cbe448eb4df17010f0e5f360a8e705da710f3e0 (patch)
treeb0967cb40dd4dbb2d209afb66cdf58c8af498cf9 /src/passes/Print.cpp
parent9d79632c210a8c5002657ae87ff06c70ee109e8f (diff)
downloadbinaryen-2cbe448eb4df17010f0e5f360a8e705da710f3e0.tar.gz
binaryen-2cbe448eb4df17010f0e5f360a8e705da710f3e0.tar.bz2
binaryen-2cbe448eb4df17010f0e5f360a8e705da710f3e0.zip
Replace i31.new with ref.i31 everywhere (#5931)
Replace i31.new with ref.i31 in the printer, tests, and source code. Continue parsing i31.new for the time being to allow a graceful transition. Also update the JS API to reflect the new instruction name.
Diffstat (limited to 'src/passes/Print.cpp')
-rw-r--r--src/passes/Print.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/passes/Print.cpp b/src/passes/Print.cpp
index 203d922d0..c47f33944 100644
--- a/src/passes/Print.cpp
+++ b/src/passes/Print.cpp
@@ -1959,7 +1959,7 @@ struct PrintExpressionContents
printMedium(o, "tuple.extract ");
o << curr->index;
}
- void visitRefI31(RefI31* curr) { printMedium(o, "i31.new"); }
+ void visitRefI31(RefI31* curr) { printMedium(o, "ref.i31"); }
void visitI31Get(I31Get* curr) {
printMedium(o, curr->signed_ ? "i31.get_s" : "i31.get_u");
}