summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/wasm2js.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/wasm2js.h b/src/wasm2js.h
index 53137dd43..705c62153 100644
--- a/src/wasm2js.h
+++ b/src/wasm2js.h
@@ -2382,7 +2382,6 @@ private:
void emitPostES6();
void emitMemory(std::string buffer,
- std::string segmentWriter,
std::function<std::string(std::string)> accessGlobal);
void emitSpecialSupport();
};
@@ -2466,7 +2465,7 @@ void Wasm2JSGlue::emitPost() {
}
void Wasm2JSGlue::emitPostEmscripten() {
- emitMemory("wasmMemory.buffer", "writeSegment", [](std::string globalName) {
+ emitMemory("wasmMemory.buffer", [](std::string globalName) {
return std::string("asmLibraryArg['") + asmangle(globalName) + "']";
});
@@ -2503,7 +2502,6 @@ void Wasm2JSGlue::emitPostES6() {
<< wasm.memory.initial.addr * Memory::kPageSize << ");\n";
emitMemory(std::string("mem") + moduleName.str,
- std::string("assign") + moduleName.str,
[](std::string globalName) { return globalName; });
}
@@ -2590,7 +2588,6 @@ void Wasm2JSGlue::emitPostES6() {
void Wasm2JSGlue::emitMemory(
std::string buffer,
- std::string segmentWriter,
std::function<std::string(std::string)> accessGlobal) {
if (!wasm.memory.exists) {
return;