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

Shubham Sandeep Rastogi via All-commits all-commits at lists.llvm.org
Wed Jan 26 14:14:56 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 50f50f2582993a079dbcfb8e7ba48920f41e6be0
      https://github.com/llvm/llvm-project/commit/50f50f2582993a079dbcfb8e7ba48920f41e6be0
  Author: Shubham Sandeep Rastogi <srastogi22 at apple.com>
  Date:   2022-01-26 (Wed, 26 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