[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
Tue Apr 16 13:44:05 PDT 2024


================
@@ -1332,6 +1332,54 @@ llvm::DIType *CGDebugInfo::CreateType(const TemplateSpecializationType *Ty,
   auto PP = getPrintingPolicy();
   Ty->getTemplateName().print(OS, PP, TemplateName::Qualified::None);
 
+  SourceLocation Loc = AliasDecl->getLocation();
+
+  if (CGM.getCodeGenOpts().DebugTemplateAlias) {
+    // TemplateSpecializationType doesn't know if its template args are
+    // being substitued into a parameter pack. We can find out if that's
----------------
pogo59 wrote:

substituted

https://github.com/llvm/llvm-project/pull/87623


More information about the llvm-commits mailing list