This is an archive of the discontinued LLVM Phabricator instance.

Add support to dsymutil for dumping out new swift5 reflection sections
ClosedPublic

Authored by rastogishubham on Feb 8 2022, 9:26 PM.

Details

Summary

This change adds support for dsymutil to be able to dump out the new swift5 reflection sections called "swift5_proto and swift5_protos". The test is also updated to check for this.

Diff Detail

Event Timeline

rastogishubham created this revision.Feb 8 2022, 9:26 PM
rastogishubham requested review of this revision.Feb 8 2022, 9:26 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 8 2022, 9:26 PM
This revision is now accepted and ready to land.Feb 8 2022, 9:33 PM
rastogishubham edited the summary of this revision. (Show Details)Feb 8 2022, 9:34 PM

I forgot to add the extra checks for the test to the diff

aprantl accepted this revision.Feb 9 2022, 12:54 PM

LGTM with one question inline.

llvm/include/llvm/BinaryFormat/Swift.def
29

Is the protocs name one you came up with or does the Swift compiler use that too? It seems protos without the c would be closer to the actual section name, but if the Swift compiler uses protocs, we should use that here, too.

llvm/test/tools/dsymutil/X86/reflection-dump.test
47

Test looks good!

rastogishubham marked 2 inline comments as done.Feb 9 2022, 1:07 PM
rastogishubham added inline comments.
llvm/include/llvm/BinaryFormat/Swift.def
29

This is the name that was in /Users/shubham/Development/apple/swift/include/swift/ABI/ObjectFile.h I did not come up with any names myself. Just used the names that Artem came up with

This revision was landed with ongoing or failed builds.Feb 10 2022, 1:51 PM
This revision was automatically updated to reflect the committed changes.
rastogishubham marked an inline comment as done.