diff options
author | Sam Clegg <sbc@chromium.org> | 2019-02-28 09:58:35 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-28 09:58:35 -0800 |
commit | 87a6512c5ba86bd6a7b7bafe778c89756de037f2 (patch) | |
tree | 77d6bce78a27f36464cdb4f4ebe9324fbaa3967f | |
parent | 23ce677fdb0af5af919bf8faf0be04c3692cc457 (diff) | |
download | binaryen-87a6512c5ba86bd6a7b7bafe778c89756de037f2.tar.gz binaryen-87a6512c5ba86bd6a7b7bafe778c89756de037f2.tar.bz2 binaryen-87a6512c5ba86bd6a7b7bafe778c89756de037f2.zip |
Remove reference to old __wasm_nullptr function (#1928)
-rw-r--r-- | src/wasm/wasm-emscripten.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/wasm/wasm-emscripten.cpp b/src/wasm/wasm-emscripten.cpp index a383a812a..f7b7213d9 100644 --- a/src/wasm/wasm-emscripten.cpp +++ b/src/wasm/wasm-emscripten.cpp @@ -36,8 +36,7 @@ cashew::IString EM_JS_PREFIX("__em_js__"); static Name STACK_SAVE("stackSave"), STACK_RESTORE("stackRestore"), STACK_ALLOC("stackAlloc"), - STACK_INIT("stack$init"), - DUMMY_FUNC("__wasm_nullptr"); + STACK_INIT("stack$init"); void addExportedFunction(Module& wasm, Function* function) { wasm.addFunction(function); @@ -181,9 +180,6 @@ void EmscriptenGlueGenerator::generateDynCallThunks() { tableSegmentData = wasm.table.segments[0].data; } for (const auto& indirectFunc : tableSegmentData) { - if (indirectFunc == DUMMY_FUNC) { - continue; - } std::string sig = getSig(wasm.getFunction(indirectFunc)); auto* funcType = ensureFunctionType(sig, &wasm); if (!sigs.insert(sig).second) continue; // Sig is already in the set |