summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2020-11-05 12:51:42 -0800
committerGitHub <noreply@github.com>2020-11-05 12:51:42 -0800
commit2887e516eb2a4564ddca76ec42282822af24dd97 (patch)
tree45541b95e108e5adfd53ca91ee6f4642e73d9e8c /src
parentefa6b497998dfcc2fe5b2e0f6d0904e51feb6812 (diff)
downloadbinaryen-2887e516eb2a4564ddca76ec42282822af24dd97.tar.gz
binaryen-2887e516eb2a4564ddca76ec42282822af24dd97.tar.bz2
binaryen-2887e516eb2a4564ddca76ec42282822af24dd97.zip
wasm2js: Remove unused argument. NFC. (#3324)
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;