[llvm] [WebAssembly] Support disassembler for try_table (PR #108800)
Derek Schuff via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 16 17:31:16 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:
Ah, I see, the number of catches is the last operand currently, because we haven't parsed the rest yet.
https://github.com/llvm/llvm-project/pull/108800
More information about the llvm-commits
mailing list