summaryrefslogtreecommitdiff
path: root/src/passes/Asyncify.cpp
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2020-11-13 17:02:52 -0800
committerGitHub <noreply@github.com>2020-11-13 17:02:52 -0800
commitdd618f11660fc6f89211b864a3bd9dcbd14bb013 (patch)
tree914233a726cc77ca59c6147af89d5f21495477a6 /src/passes/Asyncify.cpp
parent75e61204b67e921464af14fd13ff768d88755e8c (diff)
downloadbinaryen-dd618f11660fc6f89211b864a3bd9dcbd14bb013.tar.gz
binaryen-dd618f11660fc6f89211b864a3bd9dcbd14bb013.tar.bz2
binaryen-dd618f11660fc6f89211b864a3bd9dcbd14bb013.zip
Rename Indirect to NonDirect in CallGraphPropertyAnalysis in preparation for CallRef (#3355)
This is in preparation for CallRef, which takes a reference to a function and calls it. CallGraphPropertyAnalysis needs to be aware of anything that is not a direct call, and "NonDirect" is meant to cover both CallIndirect and CallRef.
Diffstat (limited to 'src/passes/Asyncify.cpp')
-rw-r--r--src/passes/Asyncify.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/passes/Asyncify.cpp b/src/passes/Asyncify.cpp
index 3cf0a76d2..a05c9293c 100644
--- a/src/passes/Asyncify.cpp
+++ b/src/passes/Asyncify.cpp
@@ -677,7 +677,7 @@ public:
}
info.canChangeState = true;
},
- scanner.IgnoreIndirectCalls);
+ scanner.IgnoreNonDirectCalls);
map.swap(scanner.map);
@@ -1408,8 +1408,10 @@ struct Asyncify : public Pass {
bool allImportsCanChangeState =
stateChangingImports == "" && ignoreImports == "";
String::Split listedImports(stateChangingImports, ",");
- auto ignoreIndirect = runner->options.getArgumentOrDefault(
- "asyncify-ignore-indirect", "") == "";
+ // TODO: consider renaming asyncify-ignore-indirect to
+ // asyncify-ignore-nondirect, but that could break users.
+ auto ignoreNonDirect = runner->options.getArgumentOrDefault(
+ "asyncify-ignore-indirect", "") == "";
std::string removeListInput =
runner->options.getArgumentOrDefault("asyncify-removelist", "");
if (removeListInput.empty()) {
@@ -1462,7 +1464,7 @@ struct Asyncify : public Pass {
// Scan the module.
ModuleAnalyzer analyzer(*module,
canImportChangeState,
- ignoreIndirect,
+ ignoreNonDirect,
removeList,
addList,
onlyList,