[all-commits] [llvm/llvm-project] d84d11: Emit swift5 reflection section data in dsym bundle...

Shubham Sandeep Rastogi via All-commits all-commits at lists.llvm.org
Fri Jan 21 13:23:04 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d84d1135d80c1dead6564347943ba56eed5aac3b
      https://github.com/llvm/llvm-project/commit/d84d1135d80c1dead6564347943ba56eed5aac3b
  Author: Shubham Sandeep Rastogi <srastogi22 at apple.com>
  Date:   2022-01-21 (Fri, 21 Jan 2022)

  Changed paths:
    A llvm/include/llvm/BinaryFormat/Swift.def
    A llvm/include/llvm/BinaryFormat/Swift.h
    M llvm/include/llvm/DWARFLinker/DWARFStreamer.h
    M llvm/include/llvm/MC/MCContext.h
    M llvm/include/llvm/MC/MCObjectFileInfo.h
    M llvm/include/llvm/Object/MachO.h
    M llvm/include/llvm/Object/ObjectFile.h
    M llvm/lib/DWARFLinker/DWARFStreamer.cpp
    M llvm/lib/MC/MCContext.cpp
    M llvm/lib/MC/MCObjectFileInfo.cpp
    M llvm/lib/Object/MachOObjectFile.cpp
    A llvm/test/tools/dsymutil/Inputs/main.yaml
    A llvm/test/tools/dsymutil/Inputs/reflection_metadata.yaml
    A llvm/test/tools/dsymutil/Inputs/test.yaml
    A llvm/test/tools/dsymutil/reflection-dump.test
    M llvm/tools/dsymutil/DwarfLinkerForBinary.cpp

  Log Message:
  -----------
  Emit swift5 reflection section data in dsym bundle generated by dsymutil in the Dwarf section.

Add support for Swift reflection metadata to dsymutil.

This patch adds support for copying Swift reflection metadata (__swift5_.* sections) from .o files to into the symbol-rich binary in the output .dSYM. The functionality is automatically enabled only if a .o file has reflection metadata sections and the binary doesn't. When copying dsymutil moves the section from the __TEXT segment to the __DWARF segment.

rdar://76973336

https://reviews.llvm.org/D115007




More information about the All-commits mailing list