[PATCH] D60642: [dsymutil] Collect parseable Swift interfaces in the .dSYM bundle.

Adrian Prantl via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 12 16:04:47 PDT 2019


aprantl created this revision.
aprantl added reviewers: friss, JDevlieghere, jasonmolenda, jingham.
Herald added a subscriber: jdoerfert.
Herald added a project: LLVM.

When a Swift module built with debug info imports a library without
debug info from a textual interface, the textual interface is
necessary to reconstruct types defined in the library's interface. By
recording the Swift interface files in DWARF dsymutil can collect them
and LLDB can find them.

      

This patch teaches dsymutil to look for DW_TAG_imported_modules and
records all references to parseable Swift interfrace files and copies
them to

      
  `a.out.dSYM/Contents/Resources/<Arch>/<ModuleName>.swiftinterface`
      

rdar://problem/49751748


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D60642

Files:
  llvm/include/llvm/DebugInfo/DWARF/DWARFFormValue.h
  llvm/test/tools/dsymutil/Inputs/swift-interface.ll
  llvm/test/tools/dsymutil/X86/swift-interface.test
  llvm/tools/dsymutil/CompileUnit.cpp
  llvm/tools/dsymutil/CompileUnit.h
  llvm/tools/dsymutil/DwarfLinker.cpp
  llvm/tools/dsymutil/DwarfLinker.h
  llvm/tools/dsymutil/LinkUtils.h
  llvm/tools/dsymutil/dsymutil.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60642.194977.patch
Type: text/x-patch
Size: 18973 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190412/24928a31/attachment.bin>


More information about the llvm-commits mailing list