39 lines · plain
1; REQUIRES: object-emission2; RUN: %llc_dwarf %s -filetype=obj -o - | llvm-dwarfdump - | FileCheck %s3 4; CHECK: {{.*}} DW_TAG_variable5; CHECK-NEXT: {{.*}} DW_AT_location6; CHECK-NEXT: {{.*}} DW_OP_lit07; CHECK-NEXT: {{.*}} DW_OP_lit18; CHECK-NOT: {{.*}} DW_OP_lit0, DW_OP_not9; CHECK: {{.*}} DW_AT_name ("arg")10 11define void @foo() !dbg !512{13entry:14 %arg = alloca i115 store i1 false, i1* %arg16 call void @"llvm.dbg.value"(metadata i1 false , metadata !9, metadata !10), !dbg !617 store i1 true, i1* %arg18 call void @"llvm.dbg.value"(metadata i1 true , metadata !9, metadata !10), !dbg !719 ret void, !dbg !820}21 22declare void @"llvm.dbg.value"(metadata %".1", metadata %".2", metadata %".3")23 24!llvm.dbg.cu = !{ !2 }25!llvm.module.flags = !{ !11, !12 }26 27!1 = !DIFile(directory: "", filename: "test")28!2 = distinct !DICompileUnit(emissionKind: FullDebug, file: !1, isOptimized: false, language: DW_LANG_C_plus_plus, runtimeVersion: 0)29!3 = !DIBasicType(encoding: DW_ATE_boolean, name: "bool", size: 8)30!4 = !DISubroutineType(types: !{null})31!5 = distinct !DISubprogram(file: !1, isDefinition: true, isLocal: false, isOptimized: false, line: 5, linkageName: "foo", name: "foo", scope: !1, scopeLine: 5, type: !4, unit: !2)32!6 = !DILocation(column: 1, line: 5, scope: !5)33!7 = !DILocation(column: 1, line: 7, scope: !5)34!8 = !DILocation(column: 1, line: 8, scope: !5)35!9 = !DILocalVariable(arg: 0, file: !1, line: 5, name: "arg", scope: !5, type: !3)36!10 = !DIExpression()37!11 = !{ i32 2, !"Dwarf Version", i32 4 }38!12 = !{ i32 2, !"Debug Info Version", i32 3 }39