diff options
-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 ) |