[llvm] [llvm-objdump][macho] Add support for ObjC relative method lists (PR #84250)
Jonas Devlieghere via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 14 09:21:15 PDT 2024
================
@@ -4461,10 +4555,17 @@ static void print_method_list64_t(uint64_t p, struct DisassembleInfo *info,
memcpy(&ml, r, sizeof(struct method_list64_t));
if (info->O->isLittleEndian() != sys::IsLittleEndianHost)
swapStruct(ml);
+ p += sizeof(struct method_list64_t);
+
+ if ((ml.entsize & ML_HAS_RELATIVE_PTRS) != 0) {
+ print_relative_method_list(ml.entsize, ml.count, p, info, indent,
+ /*pointerBits=*/32);
----------------
JDevlieghere wrote:
Should this be `/*pointerBits=*/64` as we're in `print_method_list64_t`?
https://github.com/llvm/llvm-project/pull/84250
More information about the llvm-commits
mailing list