49 lines · plain
1; RUN: llc -split-dwarf-file=baz.dwo -split-dwarf-output=%t.dwo -O0 %s -mtriple=wasm32-unknown-unknown -filetype=obj -o %t2; RUN: llvm-objdump -h %t | FileCheck --check-prefix=OBJ %s3; RUN: llvm-objdump -h %t.dwo | FileCheck --check-prefix=DWO %s4 5 6; This test is derived from test/DebugInfo/X86/fission-cu.ll7; But it checks that the output objects have the expected sections8 9source_filename = "test/DebugInfo/WebAssembly/fission-cu.ll"10 11@a = global i32 0, align 4, !dbg !012 13!llvm.dbg.cu = !{!4}14!llvm.module.flags = !{!7}15 16!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())17!1 = !DIGlobalVariable(name: "a", scope: null, file: !2, line: 1, type: !3, isLocal: false, isDefinition: true)18!2 = !DIFile(filename: "baz.c", directory: "/usr/local/google/home/echristo/tmp")19!3 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed)20!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)21!5 = !{}22!6 = !{!0}23!7 = !{i32 1, !"Debug Info Version", i32 3}24 25; CHECK-LABEL: Sections:26 27; OBJ: Idx Name28; OBJ-NEXT: 0 IMPORT29; OBJ-NEXT: DATACOUNT30; OBJ-NEXT: DATA31; OBJ-NEXT: .debug_abbrev32; OBJ-NEXT: .debug_info33; OBJ-NEXT: .debug_str34; OBJ-NEXT: .debug_addr35; OBJ-NEXT: .debug_pubnames36; OBJ-NEXT: .debug_pubtypes37; OBJ-NEXT: .debug_line38; OBJ-NEXT: linking39 40 41; DWO: Idx Name42; DWO-NOT: IMPORT43; DWO-NOT: DATA44; DWO: 0 .debug_str.dwo45; DWO-NEXT: .debug_str_offsets.dwo46; DWO-NEXT: .debug_info.dwo47; DWO-NEXT: .debug_abbrev.dwo48; DWO-NEXT: producers49