summaryrefslogtreecommitdiff
path: root/src/passes/ReorderFunctions.cpp
diff options
context:
space:
mode:
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(),