diff options
author | Alon Zakai <azakai@google.com> | 2021-05-11 12:29:46 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-11 12:29:46 -0700 |
commit | ed92a8d5e493c839687c2f2d56cdc5123e6e3a47 (patch) | |
tree | b947cb02acae0097fe635be6f4069ba86d48ad58 /src/support/file.h | |
parent | 09052c055c07ec5a1385cd5c142ff4d8534f1d1c (diff) | |
download | binaryen-ed92a8d5e493c839687c2f2d56cdc5123e6e3a47.tar.gz binaryen-ed92a8d5e493c839687c2f2d56cdc5123e6e3a47.tar.bz2 binaryen-ed92a8d5e493c839687c2f2d56cdc5123e6e3a47.zip |
ExtractFunction: Do not always remove the memory and table (#3877)
Instead, run RemoveUnusedModuleElements, which does that sort of thing. That
is, this pass just "extracts" the function by turning all others into imports, and then
they should almost all be removable via RemoveUnusedModuleElements, depending
on whether they are used in the table or not, whether the extracted function calls
them, etc.
Without this, we would error if a function was in the table, and so this fixes #3876
Diffstat (limited to 'src/support/file.h')
0 files changed, 0 insertions, 0 deletions