1 ; RUN: %llc_dwarf -O0 -filetype=obj < %s | llvm-dwarfdump -debug-info - | FileCheck %s
3 ; CHECK: DW_TAG_subprogram
4 ; CHECK: DW_AT_name ("f")
6 ; CHECK: DW_TAG_thrown_type
7 ; CHECK-NEXT: DW_AT_type ([[ERROR:0x........]]
9 ; CHECK: DW_TAG_thrown_type
10 ; CHECK-NEXT: DW_AT_type ([[ERROR2:0x........]]
11 ; CHECK: [[ERROR]]: DW_TAG_structure_type
12 ; CHECK-NEXT: DW_AT_name ("Error")
13 ; CHECK: [[ERROR2]]: DW_TAG_structure_type
14 ; CHECK-NEXT: DW_AT_name ("DifferentError")
16 ; Function Attrs: nounwind uwtable
17 define void @f() #0 !dbg !5 {
22 attributes #0 = { nounwind uwtable }
25 !llvm.module.flags = !{!8, !9}
27 !0 = distinct !DICompileUnit(language: DW_LANG_Swift, producer: "swiftc", isOptimized: false, emissionKind: FullDebug, file: !1)
28 !1 = !DIFile(filename: "f.swift", directory: "/")
29 !3 = !DICompositeType(tag: DW_TAG_structure_type, name: "Error")
30 !4 = !DICompositeType(tag: DW_TAG_structure_type, name: "DifferentError")
31 !5 = distinct !DISubprogram(name: "f", line: 2, isLocal: false, isDefinition: true, unit: !0, scopeLine: 2, file: !1, scope: !1, type: !6, thrownTypes: !{!3, !4})
32 !6 = !DISubroutineType(types: !7)
34 !8 = !{i32 2, !"Dwarf Version", i32 4}
35 !9 = !{i32 1, !"Debug Info Version", i32 3}
36 !11 = !DILocation(line: 3, scope: !5)