diff options
Diffstat (limited to 'src/wasm-linker.cpp')
-rw-r--r-- | src/wasm-linker.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/wasm-linker.cpp b/src/wasm-linker.cpp index e89c324b4..34dbc7f9c 100644 --- a/src/wasm-linker.cpp +++ b/src/wasm-linker.cpp @@ -25,13 +25,6 @@ using namespace wasm; cashew::IString EMSCRIPTEN_ASM_CONST("emscripten_asm_const"); -namespace wasm { -// These are defined (not just declared) in shared-constants.h, so we can't just -// include that header. TODO: Move the definitions into a cpp file. -extern cashew::IString ENV; -extern cashew::IString MEMORY; -} - void Linker::placeStackPointer(Address stackAllocation) { // ensure this is the first allocation @@ -403,7 +396,7 @@ Function* Linker::getImportThunk(Name name, const FunctionType* funcType) { for (Index i = 0; i < funcType->params.size(); ++i) { args.push_back(wasmBuilder.makeGetLocal(i, funcType->params[i])); } - Expression* call = wasmBuilder.makeCallImport(name, args); + Expression* call = wasmBuilder.makeCallImport(name, args, funcType->result); f->body = call; out.wasm.addFunction(f); return f; |