[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:59:19 PST 2024


================
@@ -239,7 +239,7 @@ class WasmObjectFile : public ObjectFile {
   bool isValidSectionSymbol(uint32_t Index) const;
   wasm::WasmFunction &getDefinedFunction(uint32_t Index);
   const wasm::WasmFunction &getDefinedFunction(uint32_t Index) const;
-  wasm::WasmGlobal &getDefinedGlobal(uint32_t Index);
+  const wasm::WasmGlobal &getDefinedGlobal(uint32_t Index) const;
----------------
sbc100 wrote:

Is this an independent cleanup? 

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


More information about the llvm-commits mailing list