1; RUN: llc < %s | FileCheck %s 2; CHECK: .section .debug$S,"dr"{{$}} 3; CHECK-NEXT: .p2align 2 4; CHECK-NEXT: .long 4 5; CHECK-NEXT: .long 241 6; CHECK-NEXT: .long [[SUBSEC_END:.*]]-[[SUBSEC_START:.*]] # Subsection size 7; CHECK-NEXT: [[SUBSEC_START]]: 8; CHECK-NEXT: .short [[OBJNAME_END:.*]]-[[OBJNAME_START:.*]] # Record length 9; CHECK: [[OBJNAME_END]]: 10; CHECK-NEXT: .short [[COMPILE3_END:.*]]-[[COMPILE3_START:.*]] # Record length 11; CHECK: [[COMPILE3_END]]: 12; CHECK-NEXT: [[SUBSEC_END]]: 13; CHECK-NEXT: .p2align 2 14; CHECK-NEXT: .cv_filechecksums 15; CHECK-NEXT: .cv_stringtable 16 17target datalayout = "e-m:x-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32" 18target triple = "i686-pc-windows-msvc18.0.0" 19 20define void @baz() { 21entry: 22 %x.i.i = alloca i32, align 4 23 call void @llvm.dbg.declare(metadata ptr %x.i.i, metadata !6, metadata !12), !dbg !13 24 store i32 5, ptr %x.i.i, align 4, !dbg !13 25 ret void 26} 27 28; Function Attrs: nounwind readnone 29declare void @llvm.dbg.declare(metadata, metadata, metadata) #0 30 31attributes #0 = { nounwind readnone } 32 33!llvm.dbg.cu = !{!0} 34!llvm.module.flags = !{!3, !4} 35!llvm.ident = !{!5} 36 37!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang version 4.0.0 (trunk 276756) (llvm/trunk 276952)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !2) 38!1 = !DIFile(filename: "-", directory: "/") 39!2 = !{} 40!3 = !{i32 2, !"CodeView", i32 1} 41!4 = !{i32 2, !"Debug Info Version", i32 3} 42!5 = !{!"clang version 4.0.0 (trunk 276756) (llvm/trunk 276952)"} 43!6 = !DILocalVariable(name: "x", scope: !7, file: !8, line: 1, type: !11) 44!7 = distinct !DISubprogram(name: "foo", scope: !8, file: !8, line: 1, type: !9, isLocal: true, isDefinition: true, scopeLine: 1, isOptimized: false, unit: !0, retainedNodes: !2) 45!8 = !DIFile(filename: "<stdin>", directory: "/") 46!9 = !DISubroutineType(types: !10) 47!10 = !{null} 48!11 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed) 49!12 = !DIExpression() 50!13 = !DILocation(line: 1, column: 56, scope: !7, inlinedAt: !14) 51!14 = distinct !DILocation(line: 2, column: 52, scope: !15) 52!15 = distinct !DISubprogram(name: "bar", scope: !8, file: !8, line: 2, type: !9, isLocal: true, isDefinition: true, scopeLine: 2, isOptimized: false, unit: !0, retainedNodes: !2) 53