[lld] [llvm] [WebAssembly] Use 64-bit table when targeting wasm64 (PR #92042)

Heejin Ahn via llvm-commits llvm-commits at lists.llvm.org
Wed May 15 15:19:11 PDT 2024


================
@@ -584,12 +584,10 @@ void ElemSection::writeBody() {
   initExpr.Extended = false;
   if (ctx.isPic) {
     initExpr.Inst.Opcode = WASM_OPCODE_GLOBAL_GET;
-    initExpr.Inst.Value.Global =
-        (config->is64.value_or(false) ? WasmSym::tableBase32
-                                      : WasmSym::tableBase)
-            ->getGlobalIndex();
----------------
aheejin wrote:

Why is this removed?

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


More information about the llvm-commits mailing list