brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · 6502c86 Raw
29 lines · plain
1 2; Verify that no DWARF v5 names section is emitted when all CUs disable name tables.3; RUN: llc -mtriple x86_64-pc-linux -filetype=obj < %s \4; RUN:   | llvm-objdump -h - | FileCheck %s5 6; CHECK-NOT: debug_names7 8define dso_local i32 @main() !dbg !7 {9entry:10  ret i32 0, !dbg !1111}12 13!llvm.dbg.cu = !{!0}14!llvm.module.flags = !{!3, !4, !5}15!llvm.ident = !{!6}16 17!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)18!1 = !DIFile(filename: "foo.cpp", directory: "/usr/local/google/home/blaikie/dev/scratch", checksumkind: CSK_MD5, checksum: "f881137628fc8dd673b761eb7a1e2432")19!2 = !{}20!3 = !{i32 2, !"Dwarf Version", i32 5}21!4 = !{i32 2, !"Debug Info Version", i32 3}22!5 = !{i32 1, !"wchar_size", i32 4}23!6 = !{!"clang version 8.0.0 (trunk 339438) (llvm/trunk 339448)"}24!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)25!8 = !DISubroutineType(types: !9)26!9 = !{!10}27!10 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)28!11 = !DILocation(line: 1, column: 13, scope: !7)29