[PATCH] D38504: [llvm-dsymutil] Add support for __swift_ast MachO DWARF section

Francis Ricci via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 3 07:15:01 PDT 2017


fjricci created this revision.
Herald added a subscriber: JDevlieghere.

Xcode's dsymutil emits a __swift_ast DWARF section, which is required for debugging,
and which contains a byte-for-byte dump of the swiftmodule file.
Add this feature to llvm-dsymutil.

Tested with `gobjdump --dwarf=info -s`, by verifying that the contents of
`__DWARF.__swift_ast` match between Xcode's dsymutil and llvm-dsymutil
(Xcode's dwarfdump and llvm-dwarfdump don't currently recognize the
__swift_ast section).


https://reviews.llvm.org/D38504

Files:
  include/llvm/MC/MCObjectFileInfo.h
  lib/MC/MCObjectFileInfo.cpp
  tools/dsymutil/BinaryHolder.h
  tools/dsymutil/DebugMap.cpp
  tools/dsymutil/DebugMap.h
  tools/dsymutil/DwarfLinker.cpp
  tools/dsymutil/MachODebugMapParser.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38504.117521.patch
Type: text/x-patch
Size: 8860 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171003/fd33c63b/attachment.bin>


More information about the llvm-commits mailing list