brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.7 KiB · d57c0b6 Raw
42 lines · plain
1; Verify that split type units with no source locations don't have a2; 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 < %s7; RUN: llvm-dwarfdump -v %t.dwo | FileCheck %s8 9; CHECK-NOT: .debug_line.dwo10; CHECK: .debug_info.dwo contents:11; CHECK: 0x00000000: Type Unit: {{.*}} version = 0x0005, unit_type = DW_UT_split_type, abbr_offset12; CHECK: 0x00000018: DW_TAG_type_unit13; CHECK-NOT: DW_AT_stmt_list14; CHECK-NOT: DW_AT_decl_file15; CHECK: Compile Unit:16; CHECK-NOT: .debug_line.dwo17 18; ModuleID = 't.cpp'19source_filename = "t.cpp"20target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"21target triple = "x86_64-unknown-linux-gnu"22 23%struct.S = type { i32 }24 25@s = global %struct.S zeroinitializer, align 4, !dbg !026 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