[Alignment][NFC] Instructions::getLoadStoreAlignment
[llvm-complete.git] / test / DebugInfo / Generic / thrownTypes.ll
blobf61039e963c381cd32ab382591734d2ad3d50979
1 ; REQUIRES: object-emission
3 ; RUN: %llc_dwarf -O0 -filetype=obj < %s | llvm-dwarfdump -v -debug-info - | FileCheck %s
5 ; CHECK: DW_TAG_subprogram
6 ; CHECK:   DW_AT_name {{.*}} "f"
7 ; CHECK-NOT: DW_TAG
8 ; CHECK:   DW_TAG_thrown_type
9 ; CHECK-NEXT:   DW_AT_type {{.*}} {[[ERROR:.*]]}
10 ; CHECK-NOT: DW_TAG
11 ; CHECK:   DW_TAG_thrown_type
12 ; CHECK-NEXT:   DW_AT_type {{.*}} {[[ERROR2:.*]]}
13 ; CHECK: [[ERROR]]: DW_TAG_structure_type
14 ; CHECK-NEXT:   DW_AT_name {{.*}} "Error"
15 ; CHECK: [[ERROR2]]: DW_TAG_structure_type
16 ; CHECK-NEXT:   DW_AT_name {{.*}} "DifferentError"
18 ; Function Attrs: nounwind uwtable
19 define void @f() #0 !dbg !5 {
20 entry:
21   ret void, !dbg !11
24 attributes #0 = { nounwind uwtable }
26 !llvm.dbg.cu = !{!0}
27 !llvm.module.flags = !{!8, !9}
29 !0 = distinct !DICompileUnit(language: DW_LANG_Swift, producer: "swiftc", isOptimized: false, emissionKind: FullDebug, file: !1)
30 !1 = !DIFile(filename: "f.swift", directory: "/")
31 !3 = !DICompositeType(tag: DW_TAG_structure_type, name: "Error")
32 !4 = !DICompositeType(tag: DW_TAG_structure_type, name: "DifferentError")
33 !5 = distinct !DISubprogram(name: "f", line: 2, isLocal: false, isDefinition: true, unit: !0, scopeLine: 2, file: !1, scope: !1, type: !6, thrownTypes: !{!3, !4})
34 !6 = !DISubroutineType(types: !7)
35 !7 = !{null}
36 !8 = !{i32 2, !"Dwarf Version", i32 4}
37 !9 = !{i32 1, !"Debug Info Version", i32 3}
38 !11 = !DILocation(line: 3, scope: !5)