diff options
Diffstat (limited to 'src/wasm')
-rw-r--r-- | src/wasm/wasm-emscripten.cpp | 2 | ||||
-rw-r--r-- | src/wasm/wasm.cpp | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/wasm/wasm-emscripten.cpp b/src/wasm/wasm-emscripten.cpp index 8463354e8..65f877d92 100644 --- a/src/wasm/wasm-emscripten.cpp +++ b/src/wasm/wasm-emscripten.cpp @@ -65,7 +65,7 @@ Global* EmscriptenGlueGenerator::getStackPointerGlobal() { // linker could export it by name? for (auto& g : wasm.globals) { if (g->imported()) { - if (g->base == "__stack_pointer") { + if (g->base == STACK_POINTER) { return g.get(); } } else if (!isExported(wasm, g->name)) { diff --git a/src/wasm/wasm.cpp b/src/wasm/wasm.cpp index e4c9813b3..d0a916072 100644 --- a/src/wasm/wasm.cpp +++ b/src/wasm/wasm.cpp @@ -48,6 +48,7 @@ Name GROW_WASM_MEMORY("__growWasmMemory"); Name WASM_CALL_CTORS("__wasm_call_ctors"); Name MEMORY_BASE("__memory_base"); Name TABLE_BASE("__table_base"); +Name STACK_POINTER("__stack_pointer"); Name GET_TEMP_RET0("getTempRet0"); Name SET_TEMP_RET0("setTempRet0"); Name NEW_SIZE("newSize"); |