1 ; Verify that split type units with no source locations don't have a 2 ; DW_AT_stmt_list attribute, and the .debug_line.dwo section is suppressed. 3 4 ; RUN: llc -split-dwarf-file=foo.dwo -split-dwarf-output=%t.dwo \ 5 ; RUN: -dwarf-version=5 -generate-type-units \ 6 ; RUN: -filetype=obj -O0 -mtriple=x86_64-unknown-linux-gnu < %s 7 ; RUN: llvm-dwarfdump -v %t.dwo | FileCheck %s 8 9 ; FIXME: V5 wants type units in .debug_info.dwo not .debug_types.dwo. 10 ; CHECK-NOT: .debug_line.dwo 11 ; CHECK: .debug_types.dwo contents: 12 ; CHECK: 0x00000000: Type Unit: {{.*}} version = 0x0005 unit_type = DW_UT_split_type abbr_offset 13 ; CHECK: 0x00000018: DW_TAG_type_unit 14 ; CHECK-NOT: DW_AT_stmt_list 15 ; CHECK-NOT: DW_AT_decl_file 16 ; CHECK-NOT: .debug_line.dwo 17 18 ; ModuleID = 't.cpp' 19 source_filename = "t.cpp" 20 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" 21 target triple = "x86_64-unknown-linux-gnu" 22 23 %struct.S = type { i32 } 24 25 @s = global %struct.S zeroinitializer, align 4, !dbg !0 26 27 !llvm.dbg.cu = !{!2} 28 !llvm.module.flags = !{!8, !9} 29 !llvm.ident = !{!10} 30 31 !0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression()) 32 !1 = distinct !DIGlobalVariable(name: "s", scope: !2, file: !3, line: 5, type: !6, isLocal: false, isDefinition: true) 33 !2 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !3, producer: "clang version 5.0.0 (trunk 295942)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !4, globals: !5) 34 !3 = !DIFile(filename: "t.cpp", directory: "/home/probinson/projects/scratch") 35 !4 = !{} 36 !5 = !{!0} 37 !6 = distinct !DICompositeType(tag: DW_TAG_structure_type, name: "S", size: 32, elements: !7, identifier: "_ZTS1S") 38 !7 = !{} 39 !8 = !{i32 2, !"Dwarf Version", i32 4} 40 !9 = !{i32 2, !"Debug Info Version", i32 3} 41 !10 = !{!"clang version 5.0.0 (trunk 295942)"} 42