41 lines · plain
1 2; Verify that DWARF v5 accelerator tables work with split-dwarf.3; RUN: llc -mtriple x86_64-pc-linux -split-dwarf-file=foo.dwo \4; RUN: -accel-tables=Dwarf -filetype=obj -o %t < %s5; RUN: llvm-dwarfdump -debug-names - <%t | FileCheck %s6 7; Check the header8; CHECK: CU count: 19; CHECK: Local TU count: 010; CHECK: Foreign TU count: 011; CHECK: Name count: 112; CHECK: CU[0]: 0x{{[0-9a-f]*}}13 14; CHECK: Abbreviation [[ABBREV:0x[0-9a-f]*]]15; CHECK-NEXT: Tag: DW_TAG_variable16; CHECK-NEXT: DW_IDX_die_offset: DW_FORM_ref417 18; CHECK: String: 0x{{[0-9a-f]*}} "foobar"19; CHECK-NEXT: Entry20; CHECK-NEXT: Abbrev: [[ABBREV]]21; CHECK-NEXT: Tag: DW_TAG_variable22; CHECK-NEXT: DW_IDX_die_offset: 0x{{[0-9a-f]*}}23 24@foobar = common dso_local global ptr null, align 8, !dbg !025 26!llvm.dbg.cu = !{!2}27!llvm.module.flags = !{!7, !8, !9}28!llvm.ident = !{!10}29 30!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())31!1 = distinct !DIGlobalVariable(name: "foobar", scope: !2, file: !3, line: 1, type: !6, isLocal: false, isDefinition: true)32!2 = distinct !DICompileUnit(language: DW_LANG_C99, file: !3, producer: "clang version 7.0.0 (trunk 325496) (llvm/trunk 325732)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !4, globals: !5)33!3 = !DIFile(filename: "/tmp/cu1.c", directory: "/tmp")34!4 = !{}35!5 = !{!0}36!6 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: null, size: 64)37!7 = !{i32 2, !"Dwarf Version", i32 4}38!8 = !{i32 2, !"Debug Info Version", i32 3}39!9 = !{i32 1, !"wchar_size", i32 4}40!10 = !{!"clang version 7.0.0 (trunk 325496) (llvm/trunk 325732)"}41