[PATCH] D100629: [Debug-Info][DBX] DW_AT_alignment should not be generated when dwarf version is not 5

ChenZheng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 16 02:28:30 PDT 2021


shchenz created this revision.
shchenz added reviewers: dblaikie, aprantl, probinson, jsji, Esme, echristo, PowerPC.
shchenz added a project: debug-info.
Herald added subscribers: hiraditya, nemanjai.
shchenz requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

As discussed in D99250 <https://reviews.llvm.org/D99250> , we added a new tuning debugger DBX(D99400 <https://reviews.llvm.org/D99400>) to add some debug info customizations for DBX on AIX.

This is part of the customizations, not generating DWARF infos not matching the DWARF version.

This is for `DW_AT_alignment` attribute.

Now for DBX, we only generate this attribute when DWARF version is 5 or higher.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D100629

Files:
  llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
  llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
  llvm/test/DebugInfo/PowerPC/align.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D100629.338033.patch
Type: text/x-patch
Size: 5178 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210416/0cc1b5db/attachment-0001.bin>


More information about the llvm-commits mailing list