1 ; RUN: %llc_dwarf -filetype=obj %s -o - | llvm-dwarfdump -debug-info - | FileCheck %s
2 ; Generated at -O2 from:
4 ; __attribute__((always_inline)) void g() {
10 ; CHECK: DW_TAG_subprogram
11 ; CHECK: DW_AT_abstract_origin {{.*}}"g"
12 ; CHECK-NOT: DW_AT_abstract_origin {{.*}}"g"
14 source_filename = "test.c"
15 target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
16 target triple = "x86_64-apple-macosx10.11.0"
18 ; Function Attrs: alwaysinline nounwind ssp uwtable
19 define void @g() #0 !dbg !7 {
21 tail call void (...) @f() #3, !dbg !10
27 ; Function Attrs: nounwind ssp uwtable
28 define void @h() #2 !dbg !12 {
30 tail call void (...) @f() #3, !dbg !13
34 attributes #0 = { alwaysinline nounwind ssp uwtable }
35 attributes #2 = { nounwind ssp uwtable }
36 attributes #3 = { nounwind }
39 !llvm.module.flags = !{!3, !4, !5}
42 !0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang version 3.9.0 ", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !2)
43 !1 = !DIFile(filename: "test.c", directory: "/Volumes/Data/llvm")
45 !3 = !{i32 2, !"Dwarf Version", i32 2}
46 !4 = !{i32 2, !"Debug Info Version", i32 3}
47 !5 = !{i32 1, !"PIC Level", i32 2}
48 !6 = !{!"clang version 3.9.0 "}
49 !7 = distinct !DISubprogram(name: "g", scope: !1, file: !1, line: 2, type: !8, isLocal: false, isDefinition: true, scopeLine: 2, isOptimized: true, unit: !0, retainedNodes: !2)
50 !8 = !DISubroutineType(types: !9)
52 !10 = !DILocation(line: 3, column: 3, scope: !7)
53 !11 = !DILocation(line: 4, column: 1, scope: !7)
54 !12 = distinct !DISubprogram(name: "h", scope: !1, file: !1, line: 5, type: !8, isLocal: false, isDefinition: true, scopeLine: 5, isOptimized: true, unit: !0, retainedNodes: !2)
55 !13 = !DILocation(line: 3, column: 3, scope: !7, inlinedAt: !14)
56 !14 = distinct !DILocation(line: 6, column: 3, scope: !12)
57 !15 = !DILocation(line: 7, column: 1, scope: !12)