[PATCH] D145076: [llvm][DebugInfo] Introduce new DW_AT_LLVM_preferred_name attribute

Michael Buch via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 1 08:53:55 PST 2023


Michael137 created this revision.
Michael137 added reviewers: aprantl, dblaikie.
Herald added a subscriber: hiraditya.
Herald added a project: All.
Michael137 requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This patch adds a new field to DIComposite metadata that
holds the type of the preferred name for a structure.

This will be used to encode the `[[clang::preferred_name]]`
attribute into DWARF.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D145076

Files:
  llvm/include/llvm/BinaryFormat/Dwarf.def
  llvm/include/llvm/IR/DebugInfoMetadata.h
  llvm/lib/AsmParser/LLParser.cpp
  llvm/lib/Bitcode/Reader/MetadataLoader.cpp
  llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
  llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
  llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h
  llvm/lib/IR/AsmWriter.cpp
  llvm/lib/IR/DebugInfoMetadata.cpp
  llvm/lib/IR/LLVMContextImpl.h
  llvm/test/Bitcode/attr-preferred_name-dicomposite.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D145076.501536.patch
Type: text/x-patch
Size: 20550 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230301/206bebf4/attachment.bin>


More information about the llvm-commits mailing list