diff options
author | Alon Zakai <azakai@google.com> | 2022-11-30 10:40:48 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-30 18:40:48 +0000 |
commit | e966b1c103befc5055d714a966a7fc0e439878bd (patch) | |
tree | 11ffff657d1bd7229d8436fbbdd5f16ab39698ca /src/passes/ReorderFunctions.cpp | |
parent | fe3ad0e6319cadcbe0dfdb360421029086c300f5 (diff) | |
download | binaryen-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.cpp | 2 |
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(), |