[PATCH] D139989: [clang][DebugInfo] Add DW_AT_default_value support for template template parameters
Michael Buch via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 13 17:53:15 PST 2022
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 projects: clang, LLVM.
Herald added subscribers: llvm-commits, cfe-commits.
After this patch, in the following snippet:
template <typename T> Foo {};
template <template <typename T> class CT = Foo> Bar {};
Bar<> b;
The debug-info entry for the `CT` template parameter will have
a `DW_AT_default_value (true)` attached to it.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D139989
Files:
clang/lib/CodeGen/CGDebugInfo.cpp
clang/test/CodeGenCXX/debug-info-template-parameter.cpp
llvm/include/llvm/IR/DIBuilder.h
llvm/lib/IR/DIBuilder.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D139989.482680.patch
Type: text/x-patch
Size: 4351 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221214/3f6c51bc/attachment.bin>
More information about the llvm-commits
mailing list