brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.4 KiB · c16a4d0 Raw
59 lines · plain
1; RUN: llc -split-dwarf-file=baz.dwo -split-dwarf-output=%t.dwo -O0 %s -mtriple=x86_64-unknown-windows-msvc -filetype=obj -o %t2; RUN: llvm-objdump -ht %t | FileCheck --check-prefix=OBJ %s3; RUN: llvm-objdump -ht %t.dwo | FileCheck --check-prefix=DWO %s4 5; This test is derived from test/DebugInfo/X86/fission-cu.ll6; But it checks that the output objects have the expected sections7 8source_filename = "test/DebugInfo/X86/fission-cu.ll"9 10@a = common global i32 0, align 4, !dbg !011 12!llvm.dbg.cu = !{!4}13!llvm.module.flags = !{!7}14 15!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())16!1 = !DIGlobalVariable(name: "a", scope: null, file: !2, line: 1, type: !3, isLocal: false, isDefinition: true)17!2 = !DIFile(filename: "baz.c", directory: "e:\\llvm-project\\tmp")18!3 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed)19!4 = distinct !DICompileUnit(language: DW_LANG_C99, file: !2, producer: "clang version 3.3 (trunk 169021) (llvm/trunk 169020)", isOptimized: false, runtimeVersion: 0, splitDebugFilename: "baz.dwo", emissionKind: FullDebug, enums: !5, retainedTypes: !5, globals: !6, imports: !5)20!5 = !{}21!6 = !{!0}22!7 = !{i32 1, !"Debug Info Version", i32 3}23 24; CHECK-LABEL: Sections:25 26; OBJ:     Idx Name27; OBJ-NEXT:  0 .text28; OBJ-NEXT:  1 .data29; OBJ-NEXT:  2 .bss30; OBJ-NEXT:  3 .debug$S31; OBJ-NEXT:  4 .debug_abbrev32; OBJ-NEXT:  5 .debug_info33; OBJ-NEXT:  6 .debug_str34; OBJ-NEXT:  7 .debug_addr35; OBJ-NEXT:  8 .debug_pubnames36; OBJ-NEXT:  9 .debug_pubtypes37; OBJ-NEXT: 10 .debug_line38 39; OBJ:     .debug_abbrev40; OBJ:     .debug_info41; OBJ-NOT: .dwo42 43; DWO:      Idx Name44; DWO-NEXT:   0 .debug_str.dwo45; DWO-NEXT:   1 .debug_str_offsets.dwo46; DWO-NEXT:   2 .debug_info.dwo47; DWO-NEXT:   3 .debug_abbrev.dwo48 49; DWO:      SYMBOL TABLE:50; DWO-NEXT: [ 0](sec  1)(fl 0x00)(ty   0)(scl   3) (nx 1) 0x00000000 .debug_str.dwo51; DWO-NEXT: AUX scnlen 0x49 nreloc 0 nlnno 0 checksum 0xa4983874 assoc 1 comdat 052; DWO-NEXT: [ 2](sec  2)(fl 0x00)(ty   0)(scl   3) (nx 1) 0x00000000 .debug_str_offsets.dwo53; DWO-NEXT: AUX scnlen 0x14 nreloc 0 nlnno 0 checksum 0x9392f0f0 assoc 2 comdat 054; DWO-NEXT: [ 4](sec  3)(fl 0x00)(ty   0)(scl   3) (nx 1) 0x00000000 .debug_info.dwo55; DWO-NEXT: AUX scnlen 0x29 nreloc 0 nlnno 0 checksum 0x{{[0-9a-f]*}} assoc 3 comdat 056; DWO-NEXT: [ 6](sec  4)(fl 0x00)(ty   0)(scl   3) (nx 1) 0x00000000 .debug_abbrev.dwo57; DWO-NEXT: AUX scnlen 0x33 nreloc 0 nlnno 0 checksum 0x8056e5e4 assoc 4 comdat 058; DWO-EMPTY:59