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

Shubham Sandeep Rastogi via All-commits all-commits at lists.llvm.org
Fri Jan 28 10:13:36 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4ce1f3d47c33daccfb7f4e906c3f57b404900036
      https://github.com/llvm/llvm-project/commit/4ce1f3d47c33daccfb7f4e906c3f57b404900036
  Author: Shubham Sandeep Rastogi <srastogi22 at apple.com>
  Date:   2022-01-28 (Fri, 28 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/X86/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

Differential Revision: https://reviews.llvm.org/D115007




More information about the All-commits mailing list