@@ -12,11 +12,15 @@ target triple = "x86_64-apple-macosx10.14.0"
1212
1313; CHECK-LABEL: define {{.*}}@foo.cold.1
1414; CHECK: llvm.dbg.label(metadata [[LABEL:![0-9]+]]), !dbg [[LINE:![0-9]+]]
15+ ; CHECK: llvm.dbg.label(metadata [[LABEL_IN_INLINE_ME:![0-9]+]]), !dbg [[LINE2:![0-9]+]]
1516
1617; CHECK: [[FILE:![0-9]+]] = !DIFile
18+ ; CHECK: [[INLINE_ME_SCOPE:![0-9]+]] = distinct !DISubprogram(name: "inline_me"
1719; CHECK: [[SCOPE:![0-9]+]] = distinct !DISubprogram(name: "foo.cold.1"
1820; CHECK: [[LINE]] = !DILocation(line: 1, column: 1, scope: [[SCOPE]]
1921; CHECK: [[LABEL]] = !DILabel(scope: [[SCOPE]], name: "bye", file: [[FILE]], line: 28
22+ ; CHECK: [[LABEL_IN_INLINE_ME]] = !DILabel(scope: [[INLINE_ME_SCOPE]], name: "label_in_@inline_me", file: [[FILE]], line: 29
23+ ; CHECK: [[LINE2]] = !DILocation(line: 2, column: 2, scope: [[INLINE_ME_SCOPE]], inlinedAt: [[LINE]]
2024
2125define void @foo (i32 %arg1 ) !dbg !6 {
2226entry:
@@ -28,6 +32,7 @@ if.then: ; preds = %entry
2832
2933if.end: ; preds = %entry
3034 call void @llvm.dbg.label (metadata !12 ), !dbg !11
35+ call void @llvm.dbg.label (metadata !14 ), !dbg !15
3136 call void @sink ()
3237 ret void
3338}
@@ -36,6 +41,10 @@ declare void @llvm.dbg.label(metadata)
3641
3742declare void @sink () cold
3843
44+ define void @inline_me () !dbg !13 {
45+ ret void
46+ }
47+
3948!llvm.dbg.cu = !{!0 }
4049!llvm.debugify = !{!3 , !4 }
4150!llvm.module.flags = !{!5 }
@@ -53,3 +62,6 @@ declare void @sink() cold
5362!10 = !DIBasicType (name: "ty32" , size: 32 , encoding: DW_ATE_unsigned)
5463!11 = !DILocation (line: 1 , column: 1 , scope: !6 )
5564!12 = !DILabel (scope: !6 , name: "bye" , file: !1 , line: 28 )
65+ !13 = distinct !DISubprogram (name: "inline_me" , linkageName: "inline_me" , scope: null , file: !1 , line: 1 , type: !7 , isLocal: false , isDefinition: true , scopeLine: 1 , isOptimized: true , unit: !0 , retainedNodes: !8 )
66+ !14 = !DILabel (scope: !13 , name: "label_in_@inline_me" , file: !1 , line: 29 )
67+ !15 = !DILocation (line: 2 , column: 2 , scope: !13 , inlinedAt: !11 )
0 commit comments