• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc -split-dwarf-file=baz.dwo -split-dwarf-output=%t.dwo  -O0 %s -mtriple=wasm32-unknown-unknown -filetype=obj -o %t
2; RUN: llvm-objdump -h %t | FileCheck --check-prefix=OBJ %s
3; RUN: llvm-objdump -h %t.dwo | FileCheck --check-prefix=DWO %s
4
5
6; This test is derived from test/DebugInfo/X86/fission-cu.ll
7; But it checks that the output objects have the expected sections
8
9source_filename = "test/DebugInfo/WebAssembly/fission-cu.ll"
10
11@a = global i32 0, align 4, !dbg !0
12
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 Name
28; OBJ-NEXT: 0 IMPORT
29; OBJ-NEXT: DATACOUNT
30; OBJ-NEXT: DATA
31; OBJ-NEXT: .debug_abbrev
32; OBJ-NEXT: .debug_info
33; OBJ-NEXT: .debug_str
34; OBJ-NEXT: .debug_addr
35; OBJ-NEXT: .debug_pubnames
36; OBJ-NEXT: .debug_pubtypes
37; OBJ-NEXT: .debug_line
38; OBJ-NEXT: linking
39
40
41; DWO: Idx Name
42; DWO-NOT: IMPORT
43; DWO-NOT: DATA
44; DWO: 0 .debug_str.dwo
45; DWO-NEXT: .debug_str_offsets.dwo
46; DWO-NEXT: .debug_info.dwo
47; DWO-NEXT: .debug_abbrev.dwo
48; DWO-NEXT: producers
49