xref: /llvm-project/llvm/test/DebugInfo/X86/lazy-fission-comp-dir.ll (revision b3c56af49b54a4f6a8899d9cd198ce4da4ec15c0)
1*b3c56af4SDavid Blaikie; RUN: llc -split-dwarf-file=foo.dwo -O0 %s -mtriple=x86_64-unknown-linux-gnu -filetype=obj -o %t
2*b3c56af4SDavid Blaikie; RUN: llvm-dwarfdump -debug-info -debug-line %t | FileCheck %s
3*b3c56af4SDavid Blaikie
4*b3c56af4SDavid Blaikie; CHECK: .debug_info contents:
5*b3c56af4SDavid Blaikie; CHECK: DW_AT_comp_dir ("/usr/local/google/home/blaikie/dev/scratch")
6*b3c56af4SDavid Blaikie
7*b3c56af4SDavid Blaikie; CHECK: .debug_line contents:
8*b3c56af4SDavid Blaikie; CHECK: file_names[ 1]:
9*b3c56af4SDavid Blaikie; CHECK-NEXT:      name: "main.c"
10*b3c56af4SDavid Blaikie; CHECK-NEXT: dir_index: 0
11*b3c56af4SDavid Blaikie
12*b3c56af4SDavid Blaikie; Function Attrs: noinline nounwind optnone uwtable
13*b3c56af4SDavid Blaikiedefine dso_local i32 @main() !dbg !6 {
14*b3c56af4SDavid Blaikieentry:
15*b3c56af4SDavid Blaikie  ret i32 0, !dbg !10
16*b3c56af4SDavid Blaikie}
17*b3c56af4SDavid Blaikie
18*b3c56af4SDavid Blaikie!llvm.dbg.cu = !{!0}
19*b3c56af4SDavid Blaikie!llvm.module.flags = !{!3, !4}
20*b3c56af4SDavid Blaikie!llvm.ident = !{!5}
21*b3c56af4SDavid Blaikie
22*b3c56af4SDavid Blaikie!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang version 8.0.0 (trunk 349782) (llvm/trunk 349794)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, nameTableKind: GNU)
23*b3c56af4SDavid Blaikie!1 = !DIFile(filename: "main.c", directory: "/usr/local/google/home/blaikie/dev/scratch")
24*b3c56af4SDavid Blaikie!2 = !{}
25*b3c56af4SDavid Blaikie!3 = !{i32 2, !"Debug Info Version", i32 3}
26*b3c56af4SDavid Blaikie!4 = !{i32 1, !"wchar_size", i32 4}
27*b3c56af4SDavid Blaikie!5 = !{!"clang version 8.0.0 (trunk 349782) (llvm/trunk 349794)"}
28*b3c56af4SDavid Blaikie!6 = distinct !DISubprogram(name: "main", scope: !1, file: !1, line: 1, type: !7, scopeLine: 1, spFlags: DISPFlagDefinition, unit: !0, retainedNodes: !2)
29*b3c56af4SDavid Blaikie!7 = !DISubroutineType(types: !8)
30*b3c56af4SDavid Blaikie!8 = !{!9}
31*b3c56af4SDavid Blaikie!9 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)
32*b3c56af4SDavid Blaikie!10 = !DILocation(line: 2, column: 1, scope: !6)
33