================
@@ -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;
----------------
MaxDesiatov wrote:
How do I export it as C data address in the first place? And where would LLDB
read that address from without parsing DWARF?
IIUC this global is read early enough where DWARF parsing can't happen yet, but
we have the names section parsed at the point, so the prototype in a fork that
we have looks up this as global by its name and reads its value directly.
https://github.com/llvm/llvm-project/pull/212007
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits