[llvm] [Object][Wasm] Use offset instead of index for Global address and store size (PR #81781)
Derek Schuff via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 14 15:23:44 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;
----------------
dschuff wrote:
No, because `getSymbolSize` is const, and it now calls `getDefinedGlobal`.
https://github.com/llvm/llvm-project/pull/81781
More information about the llvm-commits
mailing list