================
@@ -445,7 +444,7 @@ void GlobalSection::generateRelocationCode(raw_ostream &os,
bool TLS) const {
// Get __memory_base
writeU8(os, WASM_OPCODE_GLOBAL_GET, "GLOBAL_GET");
if (sym->isTLS())
- writeUleb128(os, ctx.sym.tlsBase->getGlobalIndex(), "__tls_base");
+ writeGetTLSBase(ctx, os);
----------------
sbc100 wrote:
I think you would need to also need to somehow move/remove the
`WASM_OPCODE_GLOBAL_GET` tow lines above?
https://github.com/llvm/llvm-project/pull/175800
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits