[clang] [llvm] [Clang] Emit DW_TAG_template_alias for template aliases (PR #87623)
Paul T Robinson via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 15 12:05:08 PDT 2024
================
@@ -5361,7 +5383,56 @@ static bool IsReconstitutableType(QualType QT) {
return T.Reconstitutable;
}
-std::string CGDebugInfo::GetName(const Decl *D, bool Qualified) const {
+bool CGDebugInfo::HasReconstitutableArgs(
+ ArrayRef<TemplateArgument> Args) const {
+ return llvm::all_of(Args, [&](const TemplateArgument &TA) {
+ switch (TA.getKind()) {
+ case TemplateArgument::Template:
+ // Easy to reconstitute - the value of the parameter in the debug
+ // info is the string name of the template. (so the template name
+ // itself won't benefit from any name rebuilding, but that's a
+ // representational limitation - maybe DWARF could be
+ // changed/improved to use some more structural representation)
----------------
pogo59 wrote:
Ah, didn't notice it was a copy-paste. But it would still be nice to have the comment follow our style guide. So, up to you.
https://github.com/llvm/llvm-project/pull/87623
More information about the llvm-commits
mailing list