[PATCH] D139989: [clang][DebugInfo] Add DW_AT_default_value support for template template parameters
Michael Buch via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 16 03:40:01 PST 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG2dff41c320fc: [llvm][DebugInfo] Add IsDefault parameter to DIBuilder… (authored by Michael137).
Changed prior to commit:
https://reviews.llvm.org/D139989?vs=483477&id=483481#toc
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D139989/new/
https://reviews.llvm.org/D139989
Files:
llvm/include/llvm/IR/DIBuilder.h
llvm/lib/IR/DIBuilder.cpp
Index: llvm/lib/IR/DIBuilder.cpp
===================================================================
--- llvm/lib/IR/DIBuilder.cpp
+++ llvm/lib/IR/DIBuilder.cpp
@@ -474,10 +474,11 @@
DITemplateValueParameter *
DIBuilder::createTemplateTemplateParameter(DIScope *Context, StringRef Name,
- DIType *Ty, StringRef Val) {
+ DIType *Ty, StringRef Val,
+ bool IsDefault) {
return createTemplateValueParameterHelper(
VMContext, dwarf::DW_TAG_GNU_template_template_param, Context, Name, Ty,
- false, MDString::get(VMContext, Val));
+ IsDefault, MDString::get(VMContext, Val));
}
DITemplateValueParameter *
Index: llvm/include/llvm/IR/DIBuilder.h
===================================================================
--- llvm/include/llvm/IR/DIBuilder.h
+++ llvm/include/llvm/IR/DIBuilder.h
@@ -518,10 +518,10 @@
/// \param Name Value parameter name.
/// \param Ty Parameter type.
/// \param Val The fully qualified name of the template.
- DITemplateValueParameter *createTemplateTemplateParameter(DIScope *Scope,
- StringRef Name,
- DIType *Ty,
- StringRef Val);
+ /// \param IsDefault Parameter is default or not.
+ DITemplateValueParameter *
+ createTemplateTemplateParameter(DIScope *Scope, StringRef Name, DIType *Ty,
+ StringRef Val, bool IsDefault = false);
/// Create debugging information for a template parameter pack.
/// \param Scope Scope in which this type is defined.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D139989.483481.patch
Type: text/x-patch
Size: 1820 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221216/907b03e5/attachment.bin>
More information about the cfe-commits
mailing list