[llvm] [WebAssembly] Add WebAssemblyMCExpr::Specifier (PR #133116)

Sam Clegg via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 7 09:20:33 PDT 2025


================
@@ -238,7 +239,7 @@ MCDisassembler::DecodeStatus WebAssemblyDisassembler::getInstruction(
         auto *WasmSym = cast<MCSymbolWasm>(Sym);
         WasmSym->setType(wasm::WASM_SYMBOL_TYPE_FUNCTION);
         const MCExpr *Expr = MCSymbolRefExpr::create(
-            WasmSym, MCSymbolRefExpr::VK_WASM_TYPEINDEX, getContext());
+            WasmSym, WebAssemblyMCExpr::VK_TYPEINDEX, getContext());
----------------
sbc100 wrote:

What is the VariantKind in these resulting expressions?  i.e. what geKind() now return instead of the old `VK_WASM_..` values?

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


More information about the llvm-commits mailing list