[PATCH] D87009: [DebugInfo] Fix DIE value emitters to be compatible with DWARF64 (2/19).

Igor Kudrin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 2 06:22:09 PDT 2020


ikudrin created this revision.
ikudrin added reviewers: dblaikie, jhenderson, probinson, aprantl.
ikudrin added projects: LLVM, debug-info.
Herald added subscribers: hiraditya, mgorny.
ikudrin requested review of this revision.

`DW_FORM_sec_offset` and `DW_FORM_strp` imply values of different sizes with DWARF32 and DWARF64. The patch fixes DIE value classes to use correct sizes when emitting their values. For `DIELocList` it ensures that the requested DWARF form matches the current DWARF format because that class uses a method that selects the size automatically.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D87009

Files:
  llvm/lib/CodeGen/AsmPrinter/DIE.cpp
  llvm/unittests/CodeGen/CMakeLists.txt
  llvm/unittests/CodeGen/DIETest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87009.289412.patch
Type: text/x-patch
Size: 8082 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200902/23e9b24b/attachment.bin>


More information about the llvm-commits mailing list