[clang] [lld] [llvm] [WebAssembly] Emit constant initializers for addrspace(1) globals (PR #212007)
Sam Clegg via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 13 13:48:47 PDT 2026
================
@@ -28,6 +28,7 @@ class MCSymbolWasm : public MCSymbol {
wasm::WasmSignature *Signature = nullptr;
std::optional<wasm::WasmGlobalType> GlobalType;
std::optional<wasm::WasmTableType> TableType;
+ std::optional<uint64_t> GlobalInitValue;
----------------
sbc100 wrote:
You can use the `export_name` attribute on both functions and data symbols to export them in the final binary. If you export a data address its will be exported as a wasm global containing containing the address of the symbol. No dwarf is involved in this.
https://github.com/llvm/llvm-project/pull/212007
More information about the cfe-commits
mailing list