[PATCH] D31010: Fix PR32288

Adrian Prantl via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 15 16:01:40 PDT 2017


aprantl created this revision.

http://bugs.llvm.org/show_bug.cgi?id=32288

The DWARF generated by LLVM includes this location:

  0x55 0x93 0x04
  DW_OP_reg5 DW_OP_piece(4)

When GCC's DWARF is simply 0x55 (DW_OP_reg5) without the DW_OP_piece. I believe it's reasonable to assume the DWARF consumer knows which part of a register logically holds the value (low bytes, high bytes, how many bytes, etc) for a primitive value like an integer.


https://reviews.llvm.org/D31010

Files:
  lib/CodeGen/AsmPrinter/DwarfExpression.cpp
  test/DebugInfo/ARM/s-super-register.ll
  test/DebugInfo/X86/PR26148.ll
  test/DebugInfo/X86/dbg-value-const-byref.ll
  test/DebugInfo/X86/dbg-value-regmask-clobber.ll
  test/DebugInfo/X86/dw_op_minus_direct.ll
  test/DebugInfo/X86/fission-ranges.ll
  test/DebugInfo/X86/single-dbg_value.ll
  test/DebugInfo/X86/subreg.ll
  test/DebugInfo/X86/subregisters.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31010.91951.patch
Type: text/x-patch
Size: 7586 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170315/02db02f9/attachment.bin>


More information about the llvm-commits mailing list