[PATCH] D19630: Debug info: Support DWARF4 bitfields via DW_AT_data_bit_offset.

Adrian Prantl via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 27 14:59:33 PDT 2016


aprantl created this revision.
aprantl added reviewers: echristo, dblaikie, probinson.
aprantl added subscribers: clayborg, llvm-commits.
aprantl set the repository for this revision to rL LLVM.
Herald added a subscriber: joker.eph.

    The DWARF2 specification of DW_AT_bit_offset was written from the perspective of
    a big-endian machine with unclear semantics for other systems.  DWARF4
    deprecated DW_AT_bit_offset and introduced a new attribute DW_AT_data_bit_offset
    that simply counts the number of bits from the beginning of the containing
    entity regardless of endianness.
    
    After this patch LLVM emits DW_AT_bit_offset for DWARF 2 or 3 and
    DW_AT_data_bit_offset when DWARF 4 or later is requested.

Any caveats from any non-LLDB platform maintainers?

Repository:
  rL LLVM

http://reviews.llvm.org/D19630

Files:
  lib/CodeGen/AsmPrinter/DwarfUnit.cpp
  test/DebugInfo/ARM/big-endian-bitfield.ll
  test/DebugInfo/X86/bitfields-dwarf4.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D19630.55332.patch
Type: text/x-patch
Size: 9617 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160427/fdfe0090/attachment.bin>


More information about the llvm-commits mailing list