[clang] fix emiision of nested unused enum types with -fno-eliminate-unused-d… (PR #137818)

2025-05-02 Thread Steve Merritt via cfe-commits


@@ -1987,7 +1987,8 @@ void CGDebugInfo::CollectRecordFields(
 
 // Bump field number for next field.
 ++fieldNo;
-  } else if (CGM.getCodeGenOpts().EmitCodeView) {
+  } else if (CGM.getCodeGenOpts().hasMaybeUnusedDebugInfo() ||
+ CGM.getCodeGenOpts().EmitCodeView) {
 // Debug info for nested types is included in the member list only for

stevemerr wrote:

Should update the comment as well.

https://github.com/llvm/llvm-project/pull/137818
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


[clang] [llvm] Template as type (PR #127654)

2025-02-18 Thread Steve Merritt via cfe-commits


@@ -0,0 +1,124 @@
+; RUN: llc  -mtriple=x86_64-unknown-linux-gnu %s -o %t -filetype=obj
+; RUN:llvm-dwarfdump %t | FileCheck %s

stevemerr wrote:

I'd recommend adding spaces to make this look more like the other tests.  So 
change to "RUN: " and "; CHECK:" for example.

https://github.com/llvm/llvm-project/pull/127654
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits