[all-commits] [llvm/llvm-project] 465157: Recognize the Swift compiler in DW_AT_producer

adrian-prantl via All-commits all-commits at lists.llvm.org
Thu Oct 7 13:54:42 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4651576edd09bb4b0978db8592e938484e7bbd4f
      https://github.com/llvm/llvm-project/commit/4651576edd09bb4b0978db8592e938484e7bbd4f
  Author: Adrian Prantl <aprantl at apple.com>
  Date:   2021-10-07 (Thu, 07 Oct 2021)

  Changed paths:
    M lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.cpp
    M lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.h
    M lldb/unittests/SymbolFile/DWARF/DWARFUnitTest.cpp

  Log Message:
  -----------
  Recognize the Swift compiler in DW_AT_producer

This patch adds support for Swift compiler producer strings to DWARFUnit.

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


  Commit: 9f93f2bfbd3fedb94490d42e48b89c2a8f05ff0a
      https://github.com/llvm/llvm-project/commit/9f93f2bfbd3fedb94490d42e48b89c2a8f05ff0a
  Author: Adrian Prantl <aprantl at apple.com>
  Date:   2021-10-07 (Thu, 07 Oct 2021)

  Changed paths:
    M llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
    A llvm/test/CodeGen/X86/line-zero-prologue-end.ll
    A llvm/test/CodeGen/X86/no-non-zero-debug-loc-prologue.ll
    M llvm/test/DebugInfo/MIR/X86/debug-loc-0.mir
    M llvm/test/DebugInfo/X86/dbg-prolog-end.ll

  Log Message:
  -----------
  Do not emit prologue_end for line 0 locs if there is a non-zero loc present

This change fixes a bug where the compiler generates a prologue_end
for line 0 locs. That is because line 0 is not associated with any
source location, so there should not be a prolgoue_end at a location
that doesn't correspond to a source location.

There were some LLVM tests that were explicitly checking for line 0
prologue_end's as well since I believe that to be incorrect, I had to
change those tests as well.

Patch by Shubham Rastogi!

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


Compare: https://github.com/llvm/llvm-project/compare/0332d5d14d21...9f93f2bfbd3f


More information about the All-commits mailing list