brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.9 KiB · 374630b Raw
64 lines · plain
1; RUN: llc -mtriple=x86_64-windows-msvc < %s -filetype=obj -o - | llvm-readobj - --codeview | FileCheck %s2; RUN: llc -mtriple=x86_64-windows-msvc < %s -o - | llvm-mc -filetype=obj --triple=x86_64-windows | llvm-readobj - --codeview | FileCheck %s3 4; We should only get one func id record, and both inlinees should point to it,5; even though there are two DISubprograms.6 7; CHECK:  FuncId (0x1002) {8; CHECK-NEXT:    TypeLeafKind: LF_FUNC_ID (0x1601)9; CHECK-NEXT:    ParentScope: 0x010; CHECK-NEXT:    FunctionType: void () (0x1001)11; CHECK-NEXT:    Name: same_name12; CHECK-NEXT:  }13; CHECK-NOT:    Name: same_name14 15; CHECK: CodeViewDebugInfo [16; CHECK:   Section: .debug$S17; CHECK:   Subsection [18; CHECK:     {{.*}}Proc{{.*}}Sym {19; CHECK:       DisplayName: main20; CHECK:     }21; CHECK:     InlineesSym {22; CHECK-NEXT:  Kind: S_INLINEES (0x1168)23; CHECK-NEXT:  Inlinees [24; CHECK-NEXT:    FuncID: same_name (0x1002)25; CHECK-NEXT:  ]26; CHECK-NEXT:}27; CHECK:     InlineSiteSym {28; CHECK:       Inlinee: same_name (0x1002)29; CHECK:     }30; CHECK:     InlineSiteEnd {31; CHECK:     }32; CHECK:     InlineSiteSym {33; CHECK:       Inlinee: same_name (0x1002)34; CHECK:     }35; CHECK:     InlineSiteEnd {36; CHECK:     }37; CHECK:     ProcEnd38; CHECK:   ]39 40target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"41target triple = "x86_64-pc-windows-msvc"42 43define void @main(ptr %i.i) !dbg !16 {44  store volatile i32 3, ptr %i.i, !dbg !645  store volatile i32 3, ptr %i.i, !dbg !1946  ret void47}48 49!llvm.module.flags = !{!0, !1}50!llvm.dbg.cu = !{!4}51 52!0 = !{i32 2, !"CodeView", i32 1}53!1 = !{i32 2, !"Debug Info Version", i32 3}54!4 = distinct !DICompileUnit(language: DW_LANG_D, file: !5, producer: "LDC (http://wiki.dlang.org/LDC)", isOptimized: false, runtimeVersion: 1, emissionKind: FullDebug)55!5 = !DIFile(filename: "opover2.d", directory: "C:\5CLDC\5Cninja-ldc\5C..\5Cldc\5Ctests\5Cd2\5Cdmd-testsuite\5Crunnable")56!6 = !DILocation(line: 302, column: 9, scope: !7, inlinedAt: !15)57!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, retainedNodes: !{})58!8 = !DISubroutineType(types: !{})59!15 = distinct !DILocation(line: 333, column: 5, scope: !16)60!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, retainedNodes: !{})61!19 = !DILocation(line: 308, column: 9, scope: !20, inlinedAt: !25)62!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, retainedNodes: !{})63!25 = distinct !DILocation(line: 334, column: 5, scope: !16)64