[PATCH] D153364: [llvm][DebugInfo] Emit DW_AT_defaulted for defaulted C++ member functions
Michael Buch via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 20 08:49:05 PDT 2023
Michael137 created this revision.
Michael137 added reviewers: dblaikie, aprantl.
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 implements the DWARFv5 feature where a
`DW_AT_defaulted` is attached to `DW_TAG_subprogram`s
which are explicitly defaulted in C++, i.e., member
functions such as the following:
class C {
C() = default;
~C() = default;
};
We add two new `spFlags`, one for each possible value of
`DW_AT_defaulted` (see table in section 5.7.8 of DWARFv5
specification).
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D153364
Files:
llvm/include/llvm/IR/DebugInfoFlags.def
llvm/include/llvm/IR/DebugInfoMetadata.h
llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
llvm/test/DebugInfo/DW_AT_defaulted.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D153364.532956.patch
Type: text/x-patch
Size: 9980 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230620/05d87aa0/attachment.bin>
More information about the llvm-commits
mailing list