[all-commits] [llvm/llvm-project] d5180e: Add debug info support for Swift/Clang APINotes.

adrian-prantl via All-commits all-commits at lists.llvm.org
Wed Mar 11 18:47:36 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: d5180ea134796f96b0c6c4ab23c592d58f25733d
      https://github.com/llvm/llvm-project/commit/d5180ea134796f96b0c6c4ab23c592d58f25733d
  Author: Adrian Prantl <aprantl at apple.com>
  Date:   2020-03-11 (Wed, 11 Mar 2020)

  Changed paths:
    M llvm/include/llvm-c/DebugInfo.h
    M llvm/include/llvm/BinaryFormat/Dwarf.def
    M llvm/include/llvm/IR/DIBuilder.h
    M llvm/include/llvm/IR/DebugInfoMetadata.h
    M llvm/lib/AsmParser/LLParser.cpp
    M llvm/lib/Bitcode/Reader/MetadataLoader.cpp
    M llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
    M llvm/lib/IR/AsmWriter.cpp
    M llvm/lib/IR/DIBuilder.cpp
    M llvm/lib/IR/DebugInfo.cpp
    M llvm/lib/IR/DebugInfoMetadata.cpp
    M llvm/lib/IR/LLVMContextImpl.h
    M llvm/test/Assembler/dimodule.ll
    M llvm/test/DebugInfo/X86/DIModule.ll
    M llvm/tools/llvm-c-test/debuginfo.c
    M llvm/unittests/IR/MetadataTest.cpp

  Log Message:
  -----------
  Add debug info support for Swift/Clang APINotes.

In order for dsymutil to collect .apinotes files (which capture
attributes such as nullability, Swift import names, and availability),
I want to propose adding an apinotes: field to DIModule that gets
translated into a DW_AT_LLVM_apinotes (path) nested inside
DW_TAG_module. This will be primarily used by LLDB to indirectly
extract the Swift names of Clang declarations that were deserialized
from DWARF.

<rdar://problem/59514626>

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




More information about the All-commits mailing list