1; RUN: llc -mtriple=x86_64-windows-msvc < %s -filetype=obj -o - | llvm-readobj - -codeview | FileCheck %s 2 3; We should only get one func id record, and both inlinees should point to it, 4; even though there are two DISubprograms. 5 6; CHECK: FuncId (0x1002) { 7; CHECK-NEXT: TypeLeafKind: LF_FUNC_ID (0x1601) 8; CHECK-NEXT: ParentScope: 0x0 9; CHECK-NEXT: FunctionType: void () (0x1001) 10; CHECK-NEXT: Name: same_name 11; CHECK-NEXT: } 12; CHECK-NOT: Name: same_name 13 14; CHECK: CodeViewDebugInfo [ 15; CHECK: Section: .debug$S 16; CHECK: Subsection [ 17; CHECK: ProcStart { 18; CHECK: DisplayName: main 19; CHECK: } 20; CHECK: InlineSite { 21; CHECK: Inlinee: same_name (0x1002) 22; CHECK: } 23; CHECK: InlineSiteEnd { 24; CHECK: } 25; CHECK: InlineSite { 26; CHECK: Inlinee: same_name (0x1002) 27; CHECK: } 28; CHECK: InlineSiteEnd { 29; CHECK: } 30; CHECK: ProcEnd 31; CHECK: ] 32 33target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128" 34target triple = "x86_64-pc-windows-msvc" 35 36define void @main(i32* %i.i) { 37 store volatile i32 3, i32* %i.i, !dbg !6 38 store volatile i32 3, i32* %i.i, !dbg !19 39 ret void 40} 41 42!llvm.module.flags = !{!0, !1, !2} 43!llvm.dbg.cu = !{!4} 44 45!0 = !{i32 2, !"CodeView", i32 1} 46!1 = !{i32 2, !"Debug Info Version", i32 3} 47!2 = !{i32 6, !"Linker Options", !{}} 48!4 = distinct !DICompileUnit(language: DW_LANG_D, file: !5, producer: "LDC (http://wiki.dlang.org/LDC)", isOptimized: false, runtimeVersion: 1, emissionKind: FullDebug) 49!5 = !DIFile(filename: "opover2.d", directory: "C:\5CLDC\5Cninja-ldc\5C..\5Cldc\5Ctests\5Cd2\5Cdmd-testsuite\5Crunnable") 50!6 = !DILocation(line: 302, column: 9, scope: !7, inlinedAt: !15) 51!7 = distinct !DISubprogram(name: "same_name", linkageName: "same_name", scope: null, file: !5, line: 302, type: !8, isLocal: false, isDefinition: true, scopeLine: 302, flags: DIFlagPrototyped, isOptimized: false, unit: !4, variables: !{}) 52!8 = !DISubroutineType(types: !{}) 53!15 = distinct !DILocation(line: 333, column: 5, scope: !16) 54!16 = distinct !DISubprogram(name: "main", linkageName: "main", scope: null, file: !5, line: 328, type: !8, isLocal: false, isDefinition: true, scopeLine: 328, flags: DIFlagPrototyped, isOptimized: false, unit: !4, variables: !{}) 55!19 = !DILocation(line: 308, column: 9, scope: !20, inlinedAt: !25) 56!20 = distinct !DISubprogram(name: "same_name", linkageName: "same_name", scope: null, file: !5, line: 308, type: !8, isLocal: false, isDefinition: true, scopeLine: 308, flags: DIFlagPrototyped, isOptimized: false, unit: !4, variables: !{}) 57!25 = distinct !DILocation(line: 334, column: 5, scope: !16) 58