diff options
author | Sam Clegg <sbc@chromium.org> | 2020-10-16 13:55:05 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-16 11:55:05 -0700 |
commit | 98dcde79d27eb1df2db47120e0102497bf385320 (patch) | |
tree | 0e161cb60451dbc57fd1302bbc9505edf510af4f /src/tools | |
parent | 5e92a4f1864c49867906624f1b16b14c57ee357a (diff) | |
download | binaryen-98dcde79d27eb1df2db47120e0102497bf385320.tar.gz binaryen-98dcde79d27eb1df2db47120e0102497bf385320.tar.bz2 binaryen-98dcde79d27eb1df2db47120e0102497bf385320.zip |
finalize: remove legacy support for "table" import (#3249)
These days we always export the table, except in the
case of dynamic linking, and even then we use the name
`__indirect_function_table`.
Diffstat (limited to 'src/tools')
-rw-r--r-- | src/tools/wasm-emscripten-finalize.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/tools/wasm-emscripten-finalize.cpp b/src/tools/wasm-emscripten-finalize.cpp index 172ce08ce..e79bafa32 100644 --- a/src/tools/wasm-emscripten-finalize.cpp +++ b/src/tools/wasm-emscripten-finalize.cpp @@ -269,13 +269,6 @@ int main(int argc, const char* argv[]) { std::vector<Name> initializerFunctions; - // The wasm backend emits "__indirect_function_table" as the import name for - // the table, while older emscripten expects "table" - if (wasm.table.imported() && !minimizeWasmChanges) { - wasm.table.base = Name("table"); - } - wasm.updateMaps(); - if (!standaloneWasm) { // This is also not needed in standalone mode since standalone mode uses // crt1.c to invoke the main and is aware of __main_argc_argv mangling. |