diff options
author | Sam Clegg <sbc@chromium.org> | 2021-04-08 20:27:51 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-08 20:27:51 -0700 |
commit | eb80aec0fa55357167f60afe7661015ae482f3e7 (patch) | |
tree | 366f150c219de3fc7ff0fba6ffebfbdcc6329ed3 /src/wasm/wasm-emscripten.cpp | |
parent | 8498027da4e078e6babe72f66829b479dd163510 (diff) | |
download | binaryen-eb80aec0fa55357167f60afe7661015ae482f3e7.tar.gz binaryen-eb80aec0fa55357167f60afe7661015ae482f3e7.tar.bz2 binaryen-eb80aec0fa55357167f60afe7661015ae482f3e7.zip |
wasm-emscripten: Remove unused EM_ASM_PREFIX and STACK_INIT (#3786)
I'm not sure what `stack$init` is but I don't think its been
used for many years.
Diffstat (limited to 'src/wasm/wasm-emscripten.cpp')
-rw-r--r-- | src/wasm/wasm-emscripten.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/wasm/wasm-emscripten.cpp b/src/wasm/wasm-emscripten.cpp index bcf9539a6..5b08b4641 100644 --- a/src/wasm/wasm-emscripten.cpp +++ b/src/wasm/wasm-emscripten.cpp @@ -33,11 +33,8 @@ namespace wasm { -cashew::IString EM_ASM_PREFIX("emscripten_asm_const"); cashew::IString EM_JS_PREFIX("__em_js__"); -static Name STACK_INIT("stack$init"); - void addExportedFunction(Module& wasm, Function* function) { wasm.addFunction(function); auto export_ = new Export; @@ -429,9 +426,7 @@ std::string EmscriptenGlueGenerator::generateEmscriptenMetadata() { meta << " \"externs\": ["; commaFirst = true; ModuleUtils::iterImportedGlobals(wasm, [&](Global* import) { - if (!(import->module == ENV && import->name == STACK_INIT)) { - meta << nextElement() << "\"_" << import->base.str << '"'; - } + meta << nextElement() << "\"_" << import->base.str << '"'; }); meta << "\n ],\n"; |