diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/passes/FuncCastEmulation.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/passes/FuncCastEmulation.cpp b/src/passes/FuncCastEmulation.cpp index 93106b5ef..8ae0db839 100644 --- a/src/passes/FuncCastEmulation.cpp +++ b/src/passes/FuncCastEmulation.cpp @@ -26,12 +26,12 @@ // // This should work even with dynamic linking, however, the number of // params must be identical, i.e., the "ABI" must match. +// #include <asm_v_wasm.h> #include <ir/literal-utils.h> #include <pass.h> #include <wasm-builder.h> -#include <wasm-emscripten.h> #include <wasm.h> namespace wasm { @@ -165,11 +165,6 @@ struct FuncCastEmulation : public Pass { // we just need the one ABI function type for all indirect calls Signature ABIType(Type(std::vector<Type>(NUM_PARAMS, Type::i64)), Type::i64); - // Add a way for JS to call into the table (as our i64 ABI means an i64 - // is returned when there is a return value, which JS engines will fail on), - // using dynCalls - EmscriptenGlueGenerator generator(*module); - generator.generateDynCallThunks(); // Add a thunk for each function in the table, and do the call through it. std::unordered_map<Name, Name> funcThunks; for (auto& segment : module->table.segments) { |