[llvm] [WebAssembly] Support disassembler for try_table (PR #108800)

Derek Schuff via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 16 12:43:55 PDT 2024


================
@@ -289,6 +289,24 @@ MCDisassembler::DecodeStatus WebAssemblyDisassembler::getInstruction(
         return MCDisassembler::Fail;
       break;
     }
+    case WebAssembly::OPERAND_CATCH_LIST: {
+      if (!parseLEBImmediate(MI, Size, Bytes, false))
+        return MCDisassembler::Fail;
+      int64_t NumCatches = MI.getOperand(MI.getNumOperands() - 1).getImm();
----------------
dschuff wrote:

where do these operands actually get added to the MI? 

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


More information about the llvm-commits mailing list