1 ; REQUIRES: object-emission
3 ; Verify that no DWARF v5 names section is emitted when all CUs disable name tables.
4 ; RUN: llc -mtriple x86_64-pc-linux -filetype=obj < %s \
5 ; RUN: | llvm-objdump -h - | FileCheck %s
7 ; CHECK-NOT: debug_names
9 define dso_local i32 @main() !dbg !7 {
15 !llvm.module.flags = !{!3, !4, !5}
18 !0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !1, producer: "clang version 8.0.0 (trunk 339438) (llvm/trunk 339448)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, nameTableKind: None)
19 !1 = !DIFile(filename: "foo.cpp", directory: "/usr/local/google/home/blaikie/dev/scratch", checksumkind: CSK_MD5, checksum: "f881137628fc8dd673b761eb7a1e2432")
21 !3 = !{i32 2, !"Dwarf Version", i32 5}
22 !4 = !{i32 2, !"Debug Info Version", i32 3}
23 !5 = !{i32 1, !"wchar_size", i32 4}
24 !6 = !{!"clang version 8.0.0 (trunk 339438) (llvm/trunk 339448)"}
25 !7 = distinct !DISubprogram(name: "main", scope: !1, file: !1, line: 1, type: !8, isLocal: false, isDefinition: true, scopeLine: 1, flags: DIFlagPrototyped, isOptimized: false, unit: !0, retainedNodes: !2)
26 !8 = !DISubroutineType(types: !9)
28 !10 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)
29 !11 = !DILocation(line: 1, column: 13, scope: !7)