[llvm] [Object][Wasm] Use offset instead of index for Global address and store size (PR #81781)

Sam Clegg via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 14 12:58:34 PST 2024


================
@@ -350,6 +350,8 @@ struct WasmGlobal {
   WasmGlobalType Type;
   WasmInitExpr InitExpr;
   StringRef SymbolName; // from the "linking" section
+  uint32_t Offset;
+  uint32_t Size;
----------------
sbc100 wrote:

Is this the size that the global itself occupies on the "global" section?  Might be worth a comment.

https://github.com/llvm/llvm-project/pull/81781


More information about the llvm-commits mailing list