1 ; RUN: llc -disable-debug-info-print=true -exception-model=dwarf -o - %s | FileCheck %s
2 ; RUN: llc -disable-debug-info-print=true -exception-model=sjlj -o - %s | FileCheck %s --check-prefix=SJLJ-CHECK
4 define i16 @main() nounwind !dbg !7 {
9 define i16 @helper() !dbg !10 {
16 ; CHECK-NOT: cfi_startproc
20 ; CHECK: cfi_startproc
26 ; SJLJ-CHECK-NOT: cfi_startproc
27 ; SJLJ-CHECK-NOT: .file
28 ; SJLJ-CHECK-NOT: .loc
30 ; SJLJ-CHECK-NOT: cfi_startproc
31 ; SJLJ-CHECK-NOT: .file
32 ; SJLJ-CHECK-NOT: .loc
36 !llvm.module.flags = !{!3, !4, !5}
39 !0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang version 12.0.0", isOptimized: true, runtimeVersion: 0, emissionKind: LineTablesOnly, enums: !2, splitDebugInlining: false, nameTableKind: None)
40 !1 = !DIFile(filename: "unwind-tables.c", directory: "/tmp")
42 !3 = !{i32 7, !"Dwarf Version", i32 4}
43 !4 = !{i32 2, !"Debug Info Version", i32 3}
44 !5 = !{i32 1, !"wchar_size", i32 4}
45 !6 = !{!"clang version 12.0.0"}
46 !7 = distinct !DISubprogram(name: "main", scope: !1, file: !1, line: 1, type: !8, scopeLine: 1, spFlags: DISPFlagDefinition, unit: !0, retainedNodes: !2)
47 !8 = !DISubroutineType(types: !2)
48 !9 = !DILocation(line: 2, column: 3, scope: !7)
49 !10 = distinct !DISubprogram(name: "helper", scope: !1, file: !1, line: 1, type: !8, scopeLine: 1, spFlags: DISPFlagDefinition, unit: !0, retainedNodes: !2)
50 !11 = !DILocation(line: 2, column: 3, scope: !10)