[all-commits] [llvm/llvm-project] d4c8a0: [wasm-ld] Allow importing/exporting the output mod...
Dan Gohman via All-commits
all-commits at lists.llvm.org
Mon Oct 31 14:00:02 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d4c8a0edca51d83b084291960eea6664b9f56327
https://github.com/llvm/llvm-project/commit/d4c8a0edca51d83b084291960eea6664b9f56327
Author: Dan Gohman <dev at sunfishcode.online>
Date: 2022-10-31 (Mon, 31 Oct 2022)
Changed paths:
A lld/test/wasm/memory-naming.test
M lld/wasm/Config.h
M lld/wasm/Driver.cpp
M lld/wasm/Options.td
M lld/wasm/Symbols.cpp
M lld/wasm/Symbols.h
M lld/wasm/SyntheticSections.cpp
M lld/wasm/SyntheticSections.h
M lld/wasm/Writer.cpp
Log Message:
-----------
[wasm-ld] Allow importing/exporting the output module's memory with arbitrary names
This adds an `--export-memory` option to wasm-ld which allows passing
a name to give to the exported memory, and extends `--import-memory` to
allow passing a <module>,<name> pair specifying where the memory should
be imported from.
This is based on https://reviews.llvm.org/D131376, with the main
difference being that it only supports exporting memory by one name.
Differential Revision: https://reviews.llvm.org/D135898
More information about the All-commits
mailing list