[PATCH] D58058: llvm-objdump -macho -objc-meta-data should print body of protocols in protolist

Michael Trent via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 11 08:52:56 PST 2019


mtrent created this revision.
mtrent added reviewers: kledzik, lhames, pete, ab.
Herald added a subscriber: rupprecht.
Herald added a project: LLVM.

llvm-objdump -macho -objc-meta-data should print body of protocols in protolist

llvm-objdump will display Objective-C and Swift metadata in a Mach-O file.
Previously, llvm-objdump would display the address of struct protocol_t data
but would not display its contents, and struct protocol_list_t data would only
be displayed as it was used by other classes and categories in the file. Now
llvm-objdump will display the contents of the struct protocol_t data, showing
protocols known to the binary at build time regardless of if they are used by
classes in that file.

The existing macho-objc-meta-data lit test case has been extended to validate
Objective-C metadata when present in a file.

rdar://47950100


Repository:
  rL LLVM

https://reviews.llvm.org/D58058

Files:
  test/tools/llvm-objdump/Inputs/macho-objc-meta-data
  test/tools/llvm-objdump/macho-objc-meta-data.test
  tools/llvm-objdump/MachODump.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58058.186271.patch
Type: text/x-patch
Size: 27405 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190211/4c954d34/attachment.bin>


More information about the llvm-commits mailing list