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 [[C1_END:.*]]-[[C1_START:.*]] # Record length 9; CHECK: [[C1_END]]: 10; CHECK-NEXT: [[SUBSEC_END]]: 11; CHECK-NEXT: .p2align 2 12; CHECK-NEXT: .cv_filechecksums 13; CHECK-NEXT: .cv_stringtable 14 15target datalayout = "e-m:x-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32" 16target triple = "i686-pc-windows-msvc18.0.0" 17 18define void @baz() { 19entry: 20 %x.i.i = alloca i32, align 4 21 call void @llvm.dbg.declare(metadata i32* %x.i.i, metadata !6, metadata !12), !dbg !13 22 store i32 5, i32* %x.i.i, align 4, !dbg !13 23 ret void 24} 25 26; Function Attrs: nounwind readnone 27declare void @llvm.dbg.declare(metadata, metadata, metadata) #0 28 29attributes #0 = { nounwind readnone } 30 31!llvm.dbg.cu = !{!0} 32!llvm.module.flags = !{!3, !4} 33!llvm.ident = !{!5} 34 35!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) 36!1 = !DIFile(filename: "-", directory: "/") 37!2 = !{} 38!3 = !{i32 2, !"CodeView", i32 1} 39!4 = !{i32 2, !"Debug Info Version", i32 3} 40!5 = !{!"clang version 4.0.0 (trunk 276756) (llvm/trunk 276952)"} 41!6 = !DILocalVariable(name: "x", scope: !7, file: !8, line: 1, type: !11) 42!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) 43!8 = !DIFile(filename: "<stdin>", directory: "/") 44!9 = !DISubroutineType(types: !10) 45!10 = !{null} 46!11 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed) 47!12 = !DIExpression() 48!13 = !DILocation(line: 1, column: 56, scope: !7, inlinedAt: !14) 49!14 = distinct !DILocation(line: 2, column: 52, scope: !15) 50!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) 51