summaryrefslogtreecommitdiff
path: root/src/passes/ReorderFunctions.cpp
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2022-11-30 10:40:48 -0800
committerGitHub <noreply@github.com>2022-11-30 18:40:48 +0000
commite966b1c103befc5055d714a966a7fc0e439878bd (patch)
tree11ffff657d1bd7229d8436fbbdd5f16ab39698ca /src/passes/ReorderFunctions.cpp
parentfe3ad0e6319cadcbe0dfdb360421029086c300f5 (diff)
downloadbinaryen-e966b1c103befc5055d714a966a7fc0e439878bd.tar.gz
binaryen-e966b1c103befc5055d714a966a7fc0e439878bd.tar.bz2
binaryen-e966b1c103befc5055d714a966a7fc0e439878bd.zip
[NFC] Add a TODO in ReorderFunctions (#5205)
Diffstat (limited to 'src/passes/ReorderFunctions.cpp')
-rw-r--r--src/passes/ReorderFunctions.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/passes/ReorderFunctions.cpp b/src/passes/ReorderFunctions.cpp
index eaff3ac03..96ebfc048 100644
--- a/src/passes/ReorderFunctions.cpp
+++ b/src/passes/ReorderFunctions.cpp
@@ -80,6 +80,8 @@ struct ReorderFunctions : public Pass {
}
ElementUtils::iterAllElementFunctionNames(
module, [&](Name& name) { counts[name]++; });
+ // TODO: count all RefFunc as well
+ // TODO: count the declaration section as well, which adds another mention
// sort
std::sort(module->functions.begin(),
module->functions.end(),