summaryrefslogtreecommitdiff
path: root/test/unit/test_symbolmap.py
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2021-05-11 12:29:46 -0700
committerGitHub <noreply@github.com>2021-05-11 12:29:46 -0700
commited92a8d5e493c839687c2f2d56cdc5123e6e3a47 (patch)
treeb947cb02acae0097fe635be6f4069ba86d48ad58 /test/unit/test_symbolmap.py
parent09052c055c07ec5a1385cd5c142ff4d8534f1d1c (diff)
downloadbinaryen-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 'test/unit/test_symbolmap.py')
0 files changed, 0 insertions, 0 deletions