1; RUN: llc -mtriple=x86_64-pc-linux-gnu -debugger-tune=gdb -filetype=asm < %s -no-dwarf-pub-sections | FileCheck %s --check-prefix=DISABLED 2; RUN: llc -mtriple=x86_64-pc-linux-gnu -debugger-tune=gdb -filetype=asm < %s | FileCheck %s 3 4; DISABLED-NOT: {{.debug_pubnames|.debug_pubtypes}} 5; CHECK-DAG: .section .debug_pubnames 6; CHECK-DAG: .section .debug_pubtypes 7 8%struct.bar = type { %"struct.ns::foo" } 9%"struct.ns::foo" = type { i8 } 10 11@b = global %struct.bar zeroinitializer, align 1, !dbg !0 12 13!llvm.dbg.cu = !{!2} 14!llvm.module.flags = !{!11, !12} 15!llvm.ident = !{!13} 16 17!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression()) 18!1 = distinct !DIGlobalVariable(name: "b", scope: !2, file: !3, line: 8, type: !6, isLocal: false, isDefinition: true) 19!2 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !3, producer: "clang", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !4, globals: !5, gnuPubnames: false) 20!3 = !DIFile(filename: "type.cpp", directory: "/tmp/dbginfo") 21!4 = !{} 22!5 = !{!0} 23!6 = distinct !DICompositeType(tag: DW_TAG_structure_type, name: "bar", file: !3, line: 5, size: 8, elements: !7, identifier: "_ZTS3bar") 24!7 = !{!8} 25!8 = !DIDerivedType(tag: DW_TAG_member, name: "f", scope: !6, file: !3, line: 6, baseType: !9, size: 8) 26!9 = distinct !DICompositeType(tag: DW_TAG_structure_type, name: "foo", scope: !10, file: !3, line: 2, size: 8, elements: !4, identifier: "_ZTSN2ns3fooE") 27!10 = !DINamespace(name: "ns", scope: null) 28!11 = !{i32 2, !"Dwarf Version", i32 4} 29!12 = !{i32 2, !"Debug Info Version", i32 3} 30!13 = !{!"clang"} 31 32