diff options
author | かめのこにょこにょこ <kamenokonokotan@gmail.com> | 2022-04-19 05:29:34 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-18 13:29:34 -0700 |
commit | 68807a4f8570a58f9e5d3756f54476884b97a366 (patch) | |
tree | 6ab7f1d7c9be895e96156f929d80a59c6ae57481 | |
parent | 8bdb2887215e7e291453d42b29da400bf864ad6c (diff) | |
download | binaryen-68807a4f8570a58f9e5d3756f54476884b97a366.tar.gz binaryen-68807a4f8570a58f9e5d3756f54476884b97a366.tar.bz2 binaryen-68807a4f8570a58f9e5d3756f54476884b97a366.zip |
Rename asyncify-side-module to asyncify-relocatable (#4596)
Related: emscripten-core/emscripten#15893 (comment)
--pass-arg=asyncify-side-module option will be used not only from
side modules, but also from main modules.
-rw-r--r-- | src/passes/Asyncify.cpp | 6 | ||||
-rw-r--r-- | test/lit/passes/asyncify_pass-arg=asyncify-side-module.wast | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/passes/Asyncify.cpp b/src/passes/Asyncify.cpp index 023f0675c..649f136c5 100644 --- a/src/passes/Asyncify.cpp +++ b/src/passes/Asyncify.cpp @@ -1531,8 +1531,8 @@ struct Asyncify : public Pass { runner->options.getArgumentOrDefault("asyncify-asserts", "") != ""; auto verbose = runner->options.getArgumentOrDefault("asyncify-verbose", "") != ""; - auto sideModule = - runner->options.getArgumentOrDefault("asyncify-side-module", "") != ""; + auto relocatable = + runner->options.getArgumentOrDefault("asyncify-relocatable", "") != ""; removeList = handleBracketingOperators(removeList); addList = handleBracketingOperators(addList); @@ -1567,7 +1567,7 @@ struct Asyncify : public Pass { verbose); // Add necessary globals before we emit code to use them. - addGlobals(module, sideModule); + addGlobals(module, relocatable); // Instrument the flow of code, adding code instrumentation and // skips for when rewinding. We do this on flat IR so that it is diff --git a/test/lit/passes/asyncify_pass-arg=asyncify-side-module.wast b/test/lit/passes/asyncify_pass-arg=asyncify-side-module.wast index 66332e3c4..8a9cd6c92 100644 --- a/test/lit/passes/asyncify_pass-arg=asyncify-side-module.wast +++ b/test/lit/passes/asyncify_pass-arg=asyncify-side-module.wast @@ -1,7 +1,7 @@ ;; NOTE: Assertions have been generated by update_lit_checks.py --all-items and should not be edited. ;; NOTE: This test was ported using port_test.py and could be cleaned up. -;; RUN: foreach %s %t wasm-opt --enable-mutable-globals --asyncify --pass-arg=asyncify-side-module -S -o - | filecheck %s +;; RUN: foreach %s %t wasm-opt --enable-mutable-globals --asyncify --pass-arg=asyncify-relocatable -S -o - | filecheck %s (module ) |