summaryrefslogtreecommitdiff
path: root/src/tools/asm2wasm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/asm2wasm.cpp')
-rw-r--r--src/tools/asm2wasm.cpp12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/tools/asm2wasm.cpp b/src/tools/asm2wasm.cpp
index 7f1a07d1d..beacc884c 100644
--- a/src/tools/asm2wasm.cpp
+++ b/src/tools/asm2wasm.cpp
@@ -42,7 +42,7 @@ int main(int argc, const char *argv[]) {
})
.add("--mapped-globals", "-m", "Mapped globals", Options::Arguments::One,
[](Options *o, const std::string &argument) {
- o->extra["mapped globals"] = argument;
+ std::cerr << "warning: the --mapped-globals/-m option is deprecated (a mapped globals file is no longer needed as we use wasm globals)" << std::endl;
})
.add("--total-memory", "-m", "Total memory size", Options::Arguments::One,
[](Options *o, const std::string &argument) {
@@ -62,10 +62,6 @@ int main(int argc, const char *argv[]) {
});
options.parse(argc, argv);
- const auto &mg_it = options.extra.find("mapped globals");
- const char *mappedGlobals =
- mg_it == options.extra.end() ? nullptr : mg_it->second.c_str();
-
const auto &tm_it = options.extra.find("total memory");
size_t totalMemory =
tm_it == options.extra.end() ? 16 * 1024 * 1024 : atoi(tm_it->second.c_str());
@@ -99,11 +95,5 @@ int main(int argc, const char *argv[]) {
Output output(options.extra["output"], Flags::Text, options.debug ? Flags::Debug : Flags::Release);
WasmPrinter::printModule(&wasm, output.getStream());
- if (mappedGlobals) {
- if (options.debug)
- std::cerr << "serializing mapped globals..." << std::endl;
- asm2wasm.serializeMappedGlobals(mappedGlobals);
- }
-
if (options.debug) std::cerr << "done." << std::endl;
}