1; RUN: llc < %s | FileCheck %s 2 3; The debug info contains a struct with a non-const static member. 4; Check that we don't emit a symbol subsection for globals. 5 6; CHECK-NOT: Symbol subsection for globals 7 8; ModuleID = 'a.cpp' 9source_filename = "a.cpp" 10target triple = "x86_64-pc-windows-msvc19.25.28614" 11 12define dso_local i32 @main() { 13entry: 14 ret i32 0 15} 16 17!llvm.dbg.cu = !{!0} 18!llvm.module.flags = !{!8, !9} 19 20!0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus_14, file: !1, producer: "clang", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, retainedTypes: !3, nameTableKind: None) 21!1 = !DIFile(filename: "a.cpp", directory: "C:/path/to/test", checksumkind: CSK_MD5, checksum: "a1dbf3aabea9e8f9d1be48f60287942f") 22!2 = !{} 23!3 = !{!4} 24!4 = distinct !DICompositeType(tag: DW_TAG_structure_type, name: "S", file: !1, line: 5, size: 32, flags: DIFlagTypePassByValue | DIFlagNonTrivial, elements: !5, identifier: ".?AU?$A@J@@") 25!5 = !{!6} 26!6 = !DIDerivedType(tag: DW_TAG_member, name: "x", scope: !4, file: !1, line: 6, baseType: !7, size: 32, flags: DIFlagStaticMember) 27!7 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed) 28!8 = !{i32 2, !"CodeView", i32 1} 29!9 = !{i32 2, !"Debug Info Version", i32 3} 30