From e966b1c103befc5055d714a966a7fc0e439878bd Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Wed, 30 Nov 2022 10:40:48 -0800 Subject: [NFC] Add a TODO in ReorderFunctions (#5205) --- src/passes/ReorderFunctions.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/passes/ReorderFunctions.cpp') 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(), -- cgit v1.2.3