1 ; RUN: %llc_dwarf -filetype=obj < %s | llvm-dwarfdump -debug-info - | FileCheck %s
2 ; REQUIRES: object-emission
4 ; Generated by clang++ -S -c --emit-llvm -g from the following ObjC source:
6 ; __attribute__ ((noreturn)) void f()
11 ; CHECK: DW_TAG_subprogram
13 ; CHECK: DW_AT_name{{.*}}"f"
15 ; CHECK: DW_AT_noreturn
17 ; ModuleID = './test.m'
18 source_filename = "./test.m"
19 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
20 target triple = "x86_64-unknown-linux-gnu"
22 ; Function Attrs: noreturn
23 define void @f() #0 !dbg !6 {
25 call void @exit(i32 0) #2, !dbg !10
28 return: ; No predecessors!
32 ; Function Attrs: noreturn
33 declare void @exit(i32) #1
35 attributes #0 = { noreturn }
38 !llvm.module.flags = !{!3, !4}
41 !0 = distinct !DICompileUnit(language: DW_LANG_ObjC, file: !1, producer: "clang version 4.0.0", isOptimized: false, runtimeVersion: 1, emissionKind: FullDebug, enums: !2)
42 !1 = !DIFile(filename: "test.m", directory: "/home/del/test/noreturn/objc")
44 !3 = !{i32 2, !"Dwarf Version", i32 4}
45 !4 = !{i32 2, !"Debug Info Version", i32 3}
46 !5 = !{!"clang version 4.0.0"}
47 !6 = distinct !DISubprogram(name: "f", scope: !7, file: !7, line: 2, type: !8, isLocal: false, isDefinition: true, scopeLine: 3, flags: DIFlagNoReturn, isOptimized: false, unit: !0, retainedNodes: !2)
48 !7 = !DIFile(filename: "./test.m", directory: "/home/del/test/noreturn/objc")
49 !8 = !DISubroutineType(types: !9)
51 !10 = !DILocation(line: 4, column: 3, scope: !6)
52 !11 = !DILocation(line: 5, column: 1, scope: !6)