[all-commits] [llvm/llvm-project] 059d1f: [DebugInfo] Correctly recognize bitfields when emi...

Jeremy Morse via All-commits all-commits at lists.llvm.org
Mon Apr 4 03:14:46 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 059d1f84d2d59093300a81c246de81b1c1da767b
      https://github.com/llvm/llvm-project/commit/059d1f84d2d59093300a81c246de81b1c1da767b
  Author: Jeremy Morse <jeremy.morse at sony.com>
  Date:   2022-04-04 (Mon, 04 Apr 2022)

  Changed paths:
    M llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
    M llvm/test/DebugInfo/AArch64/bitfields.ll
    M llvm/test/DebugInfo/ARM/big-endian-bitfield.ll
    M llvm/test/DebugInfo/ARM/bitfield.ll
    M llvm/test/DebugInfo/X86/bitfields-dwarf4.ll
    M llvm/test/DebugInfo/X86/bitfields.ll
    M llvm/test/DebugInfo/X86/debug-info-packed-struct.ll
    A llvm/test/DebugInfo/X86/packed_bitfields2.ll

  Log Message:
  -----------
  [DebugInfo] Correctly recognize bitfields when emitting dwarf

Use the "isBitfield" flag for debug types to determine whether something is
a bitfield, rather than trying to guess from it's layout. Fixes
https://bugs.llvm.org/show_bug.cgi?id=44601

Patch by: mahkoh

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




More information about the All-commits mailing list