diff options
author | Thomas Lively <tlively@google.com> | 2023-02-28 17:19:09 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-28 17:19:09 -0600 |
commit | aa4bc77bc967fd8911c30d7e69e44a9a0aef553a (patch) | |
tree | 010e3f6d43625fcd16ce6ae71110b960ad1ae284 /test/example/c-api-kitchen-sink.c | |
parent | 62e0b2f3e25629a8f18c725fbf2787fad292e26e (diff) | |
download | binaryen-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 'test/example/c-api-kitchen-sink.c')
-rw-r--r-- | test/example/c-api-kitchen-sink.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/example/c-api-kitchen-sink.c b/test/example/c-api-kitchen-sink.c index a8d07d717..cb6d760a6 100644 --- a/test/example/c-api-kitchen-sink.c +++ b/test/example/c-api-kitchen-sink.c @@ -1128,12 +1128,12 @@ void test_core() { BinaryenTypeGetHeapType(i8Array), makeInt32(module, 3), makeInt32(module, 42)), - BinaryenArrayInit(module, - BinaryenTypeGetHeapType(i8Array), - (BinaryenExpressionRef[]){makeInt32(module, 1), - makeInt32(module, 2), - makeInt32(module, 3)}, - 3), + BinaryenArrayNewFixed(module, + BinaryenTypeGetHeapType(i8Array), + (BinaryenExpressionRef[]){makeInt32(module, 1), + makeInt32(module, 2), + makeInt32(module, 3)}, + 3), BinaryenArrayGet(module, BinaryenGlobalGet(module, "i8Array-global", i8Array), makeInt32(module, 0), |