File: thrownTypes.ll

package info (click to toggle)
llvm-toolchain-13 1%3A13.0.1-6~deb11u1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,418,812 kB
  • sloc: cpp: 5,290,827; ansic: 996,570; asm: 544,593; python: 188,212; objc: 72,027; lisp: 30,291; f90: 25,395; sh: 24,900; javascript: 9,780; pascal: 9,398; perl: 7,484; ml: 5,432; awk: 3,523; makefile: 2,892; xml: 953; cs: 573; fortran: 539
file content (36 lines) | stat: -rw-r--r-- 1,365 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
; RUN: %llc_dwarf -O0 -filetype=obj < %s | llvm-dwarfdump -v -debug-info - | FileCheck %s

; CHECK: DW_TAG_subprogram
; CHECK:   DW_AT_name {{.*}} "f"
; CHECK-NOT: DW_TAG
; CHECK:   DW_TAG_thrown_type
; CHECK-NEXT:   DW_AT_type {{.*}} {[[ERROR:.*]]}
; CHECK-NOT: DW_TAG
; CHECK:   DW_TAG_thrown_type
; CHECK-NEXT:   DW_AT_type {{.*}} {[[ERROR2:.*]]}
; CHECK: [[ERROR]]: DW_TAG_structure_type
; CHECK-NEXT:   DW_AT_name {{.*}} "Error"
; CHECK: [[ERROR2]]: DW_TAG_structure_type
; CHECK-NEXT:   DW_AT_name {{.*}} "DifferentError"

; Function Attrs: nounwind uwtable
define void @f() #0 !dbg !5 {
entry:
  ret void, !dbg !11
}

attributes #0 = { nounwind uwtable }

!llvm.dbg.cu = !{!0}
!llvm.module.flags = !{!8, !9}

!0 = distinct !DICompileUnit(language: DW_LANG_Swift, producer: "swiftc", isOptimized: false, emissionKind: FullDebug, file: !1)
!1 = !DIFile(filename: "f.swift", directory: "/")
!3 = !DICompositeType(tag: DW_TAG_structure_type, name: "Error")
!4 = !DICompositeType(tag: DW_TAG_structure_type, name: "DifferentError")
!5 = distinct !DISubprogram(name: "f", line: 2, isLocal: false, isDefinition: true, unit: !0, scopeLine: 2, file: !1, scope: !1, type: !6, thrownTypes: !{!3, !4})
!6 = !DISubroutineType(types: !7)
!7 = !{null}
!8 = !{i32 2, !"Dwarf Version", i32 4}
!9 = !{i32 1, !"Debug Info Version", i32 3}
!11 = !DILocation(line: 3, scope: !5)