1 ; REQUIRES: native && target-x86_64
3 ; RUN: lli --jit-linker=rtdyld --orc-lazy-debug=jit-debug-descriptor %s 2>&1 | FileCheck %s
4 ; RUN: lli --jit-linker=jitlink --orc-lazy-debug=jit-debug-descriptor %s 2>&1 | FileCheck %s
6 ; Initial entry should be empty:
7 ; CHECK: jit_debug_descriptor 0x0000000000000000
9 ; After adding the module it must not be empty anymore:
10 ; CHECK: jit_debug_descriptor 0x
11 ; CHECK-NOT: 000000000000000
12 ; CHECK-SAME: {{[048c]}}
14 define i32 @main() !dbg !9 {
18 !llvm.module.flags = !{!0, !1, !2, !3, !4}
22 !0 = !{i32 2, !"SDK Version", [3 x i32] [i32 10, i32 15, i32 6]}
23 !1 = !{i32 7, !"Dwarf Version", i32 4}
24 !2 = !{i32 2, !"Debug Info Version", i32 3}
25 !3 = !{i32 1, !"wchar_size", i32 4}
26 !4 = !{i32 7, !"PIC Level", i32 2}
27 !5 = distinct !DICompileUnit(language: DW_LANG_C99, file: !6, producer: "compiler version", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !7, nameTableKind: None)
28 !6 = !DIFile(filename: "source-file.c", directory: "/workspace")
30 !8 = !{!"compiler version"}
31 !9 = distinct !DISubprogram(name: "main", scope: !6, file: !6, line: 4, type: !10, scopeLine: 4, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !7)
32 !10 = !DISubroutineType(types: !11)
34 !12 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)
35 !13 = !DILocation(line: 5, column: 3, scope: !9)
36 !14 = !DILocation(line: 6, column: 3, scope: !9)