diff options
author | Alon Zakai <azakai@google.com> | 2020-03-05 16:55:09 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-05 16:55:09 -0800 |
commit | dc264342e4d304a77da92642a737bbeb49d0c9ac (patch) | |
tree | 51962b62e361d510d867b9915551b4085d9c1dbd /src/support/bits.cpp | |
parent | 9e3dbb1f668a14341e9aebae479537d4a26095a5 (diff) | |
download | binaryen-dc264342e4d304a77da92642a737bbeb49d0c9ac.tar.gz binaryen-dc264342e4d304a77da92642a737bbeb49d0c9ac.tar.bz2 binaryen-dc264342e4d304a77da92642a737bbeb49d0c9ac.zip |
Asyncify: Fix wasm-only instrumentation of unnamed imports (#2682)
We assumed that the imports were already named (in their
internal name) properly. When processing a binary file without
names, or if the names don't match in general, that's not true.
To fix this, use ModuleUtils::renameFunctions to do a proper
renaming up front.
Also fix renameFunctions to not assert on the case of
renaming a function to the same name it already has.
Helps #2680
Diffstat (limited to 'src/support/bits.cpp')
0 files changed, 0 insertions, 0 deletions