brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.7 KiB · 429aee2 Raw
40 lines · plain
1; RUN: llc -filetype=obj -mtriple i686-pc-windows-msvc %s -o %t.o2; RUN: llvm-pdbutil dump %t.o -symbols -types | FileCheck %s3 4; CHECK: [[INFO_IDX:0x[^ ]*]] | LF_BUILDINFO5; CHECK-NEXT:          0x{{.*}}: `D:\src\scopes\clang`6; CHECK-NEXT:          0x{{.*}}: ``7; CHECK-NEXT:          0x{{.*}}: `D:\src\scopes\foo.cpp`8; CHECK-NEXT:          0x{{.*}}: ``9; CHECK-NEXT:          0x{{.*}}: ``10 11; CHECK: {{.*}} | S_BUILDINFO [size = 8] BuildId = `[[INFO_IDX]]`12 13; ModuleID = 'D:\src\scopes\foo.cpp'14source_filename = "D:\5Csrc\5Cscopes\5Cfoo.cpp"15target datalayout = "e-m:x-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32"16target triple = "i686-pc-windows-msvc19.0.23918"17 18define i32 @"?foo@@YAHXZ"() !dbg !10 {19entry:20  ret i32 42, !dbg !1421}22 23!llvm.dbg.cu = !{!0}24!llvm.module.flags = !{!7, !8}25!llvm.ident = !{!9}26 27!0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !1, producer: "clang version 4.0.0 ", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !2)28; One .debug$S section should contain an S_COMPILE3 record that identifies the29; source language and the version of the compiler based on the DICompileUnit.30!1 = !DIFile(filename: "D:\5Csrc\5Cscopes\5Cfoo.cpp", directory: "D:\5Csrc\5Cscopes\5Cclang")31!2 = !{}32!7 = !{i32 2, !"CodeView", i32 1}33!8 = !{i32 2, !"Debug Info Version", i32 3}34!9 = !{!"clang version 4.0.0 "}35!10 = distinct !DISubprogram(name: "foo", linkageName: "\01?foo@@YAHXZ", scope: !1, file: !1, line: 1, type: !11, isLocal: false, isDefinition: true, scopeLine: 1, flags: DIFlagPrototyped, isOptimized: false, unit: !0, retainedNodes: !2)36!11 = !DISubroutineType(types: !12)37!12 = !{!13}38!13 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed)39!14 = !DILocation(line: 2, scope: !10)40