[llvm-branch-commits] [clang] [clang][DebugInfo] Disable VTable debug info (#130255) on COFF platforms (PR #150938)
Jeremy Morse via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Jul 29 05:24:05 PDT 2025
================
@@ -222,3 +222,8 @@ void foo() {
// CHECK: !DICompositeType(tag: DW_TAG_class_type, name: "A",
// CHECK-SAME: DIFlagFwdDecl
+
+// There is a full definition of the type available in the module.
+// CHECKCOFF: !DICompositeType(tag: DW_TAG_structure_type, name: "Virtual",
+// CHECKCOFF-SAME: DIFlagFwdDecl
+// CHECKCOFF-SAME: identifier: "_ZTS7Virtual")
----------------
jmorse wrote:
If I'm reading this correctly, the DICompositeType is identical to the ELF DICompositeType earlier, but presumably it's in a different location in the output because it's no longer attached to a global variable?
If that's true, then this test coverage is somewhat indirectly covering that behaviour -- but I think it's fine because the vtable-debug-info-inheritance-simple.cpp is precisely checking the behaviour.
https://github.com/llvm/llvm-project/pull/150938
More information about the llvm-branch-commits
mailing list