summaryrefslogtreecommitdiff
path: root/src/wasm/wat-parser.cpp
diff options
context:
space:
mode:
authorThomas Lively <tlively@google.com>2023-02-28 17:19:09 -0600
committerGitHub <noreply@github.com>2023-02-28 17:19:09 -0600
commitaa4bc77bc967fd8911c30d7e69e44a9a0aef553a (patch)
tree010e3f6d43625fcd16ce6ae71110b960ad1ae284 /src/wasm/wat-parser.cpp
parent62e0b2f3e25629a8f18c725fbf2787fad292e26e (diff)
downloadbinaryen-aa4bc77bc967fd8911c30d7e69e44a9a0aef553a.tar.gz
binaryen-aa4bc77bc967fd8911c30d7e69e44a9a0aef553a.tar.bz2
binaryen-aa4bc77bc967fd8911c30d7e69e44a9a0aef553a.zip
[NFC] Internally rename `ArrayInit` to `ArrayNewFixed` (#5526)
To match the standard instruction name, rename the expression class without changing any parsing or printing behavior. A follow-on PR will take care of the functional side of this change while keeping support for parsing the old name. This change will allow `ArrayInit` to be used as the expression class for the upcoming `array.init_data` and `array.init_elem` instructions.
Diffstat (limited to 'src/wasm/wat-parser.cpp')
-rw-r--r--src/wasm/wat-parser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wasm/wat-parser.cpp b/src/wasm/wat-parser.cpp
index 1408ffe0d..ee48d7262 100644
--- a/src/wasm/wat-parser.cpp
+++ b/src/wasm/wat-parser.cpp
@@ -2365,7 +2365,7 @@ Result<typename Ctx::InstrT> makeArrayNew(Ctx&, Index, bool default_);
template<typename Ctx>
Result<typename Ctx::InstrT> makeArrayNewSeg(Ctx&, Index, ArrayNewSegOp op);
template<typename Ctx>
-Result<typename Ctx::InstrT> makeArrayInitStatic(Ctx&, Index);
+Result<typename Ctx::InstrT> makeArrayNewFixedStatic(Ctx&, Index);
template<typename Ctx>
Result<typename Ctx::InstrT> makeArrayGet(Ctx&, Index, bool signed_ = false);
template<typename Ctx> Result<typename Ctx::InstrT> makeArraySet(Ctx&, Index);
@@ -3525,7 +3525,7 @@ makeArrayNewSeg(Ctx& ctx, Index pos, ArrayNewSegOp op) {
}
template<typename Ctx>
-Result<typename Ctx::InstrT> makeArrayInitStatic(Ctx& ctx, Index pos) {
+Result<typename Ctx::InstrT> makeArrayNewFixedStatic(Ctx& ctx, Index pos) {
return ctx.in.err("unimplemented instruction");
}