[PATCH] D153362: [clang][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:31:35 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 projects: clang, LLVM.
Herald added subscribers: llvm-commits, cfe-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/D153362
Files:
clang/lib/CodeGen/CGDebugInfo.cpp
clang/test/CodeGenCXX/debug-info-defaulted.cpp
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: D153362.532951.patch
Type: text/x-patch
Size: 12998 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230620/fa574a6f/attachment.bin>
More information about the llvm-commits
mailing list