• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc -mtriple x86_64-unknown-windows-msvc -filetype asm -o - %s | FileCheck %s
2
3target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
4target triple = "x86_64-unknown-windows-msvc"
5
6define dllexport void ()* @f() !dbg !6 {
7entry:
8  ret void ()* null, !dbg !28
9}
10
11!llvm.dbg.cu = !{!0}
12!llvm.module.flags = !{!3, !4}
13
14!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !2)
15!1 = !DIFile(filename: "<stdin>", directory: "/Users/compnerd/Source/llvm", checksumkind: CSK_MD5, checksum: "2851eea4f12e754f1a68c47a7045406a")
16!2 = !{}
17!3 = !{i32 2, !"CodeView", i32 1}
18!4 = !{i32 2, !"Debug Info Version", i32 3}
19!6 = distinct !DISubprogram(name: "f", scope: !1, file: !1, line: 1, type: !7, isLocal: false, isDefinition: true, scopeLine: 1, flags: DIFlagPrototyped, isOptimized: false, unit: !0, retainedNodes: !2)
20!7 = !DISubroutineType(types: !8)
21!8 = !{!9}
22!9 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !10, size: 64)
23!10 = !DICompositeType(tag: DW_TAG_structure_type, scope: !1, size: 256, flags: DIFlagAppleBlock, elements: !11)
24!11 = !{!12, !14, !16, !17, !21}
25!12 = !DIDerivedType(tag: DW_TAG_member, name: "__isa", scope: !1, file: !1, baseType: !13, size: 64)
26!13 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: null, size: 64)
27!14 = !DIDerivedType(tag: DW_TAG_member, name: "__flags", scope: !1, file: !1, baseType: !15, size: 32, offset: 64)
28!15 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)
29!16 = !DIDerivedType(tag: DW_TAG_member, name: "__reserved", scope: !1, file: !1, baseType: !15, size: 32, offset: 96)
30!17 = !DIDerivedType(tag: DW_TAG_member, name: "__FuncPtr", scope: !1, file: !1, baseType: !18, size: 64, offset: 128)
31!18 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !19, size: 64)
32!19 = !DISubroutineType(types: !20)
33!20 = !{null}
34!21 = !DIDerivedType(tag: DW_TAG_member, name: "__descriptor", scope: !1, baseType: !22, size: 64, align: 64, offset: 192)
35!22 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !23, size: 64)
36!23 = !DICompositeType(tag: DW_TAG_structure_type, name: "__block_descriptor", scope: !1, size: 64, flags: DIFlagAppleBlock, elements: !24)
37!24 = !{!25, !27}
38!25 = !DIDerivedType(tag: DW_TAG_member, name: "reserved", scope: !1, file: !1, baseType: !26, size: 32)
39!26 = !DIBasicType(name: "long unsigned int", size: 32, encoding: DW_ATE_unsigned)
40!27 = !DIDerivedType(tag: DW_TAG_member, name: "Size", scope: !1, file: !1, baseType: !26, size: 32, offset: 32)
41!28 = !DILocation(line: 1, scope: !6)
42
43; CHECK: # Struct (0x1003)
44; CHECK: .short	0x2a                    # Record length
45; CHECK: .short	0x1505                  # Record kind: LF_STRUCTURE
46; CHECK: .short	0x0                     # MemberCount
47; CHECK: .short	0x80                    # Properties ( ForwardReference (0x80) )
48; CHECK: .long	0x0                     # FieldList
49; CHECK: .long	0x0                     # DerivedFrom
50; CHECK: .long	0x0                     # VShape
51; CHECK: .short	0x0                     # SizeOf
52; CHECK: .asciz	"__block_descriptor"    # Name
53; CHECK: .byte	243
54; CHECK: .byte	242
55; CHECK: .byte	241
56