1; RUN: llc -filetype=obj -o - %s | llvm-dwarfdump - | FileCheck %s 2 3target triple="aarch64--" 4 5; CHECK: DW_TAG_variable 6; CHECK-NOT: DW_TAG 7; CHECK: DW_AT_LLVM_tag_offset (0x01) 8; CHECK-NEXT: DW_AT_name ("a") 9 10; CHECK: DW_TAG_variable 11; CHECK-NOT: DW_TAG 12; CHECK: DW_AT_LLVM_tag_offset (0x02) 13; CHECK-NEXT: DW_AT_name ("b") 14 15define void @f() !dbg !6 { 16entry: 17 %a = alloca i8* 18 %b = alloca i8* 19 call void @llvm.dbg.declare(metadata i8** %a, metadata !12, metadata !DIExpression(DW_OP_LLVM_tag_offset, 1)), !dbg !14 20 call void @llvm.dbg.declare(metadata i8** %b, metadata !13, metadata !DIExpression(DW_OP_LLVM_tag_offset, 2)), !dbg !14 21 ret void, !dbg !15 22} 23 24declare void @llvm.dbg.declare(metadata, metadata, metadata) 25 26!llvm.dbg.cu = !{!0} 27!llvm.module.flags = !{!3, !4} 28!llvm.ident = !{!5} 29 30!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !2) 31!1 = !DIFile(filename: "x.c", directory: "/") 32!2 = !{} 33!3 = !{i32 2, !"Dwarf Version", i32 4} 34!4 = !{i32 2, !"Debug Info Version", i32 3} 35!5 = !{!"clang"} 36!6 = distinct !DISubprogram(name: "f", scope: !1, file: !1, line: 1, type: !7, isLocal: false, isDefinition: true, scopeLine: 1, flags: 37DIFlagPrototyped, isOptimized: false, unit: !0, retainedNodes: !2) 38!7 = !DISubroutineType(types: !8) 39!8 = !{null, !9} 40!9 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !10, size: 64) 41!10 = !DIDerivedType(tag: DW_TAG_const_type, baseType: !11) 42!11 = !DIBasicType(name: "char", size: 8, encoding: DW_ATE_signed_char) 43!12 = !DILocalVariable(name: "a", scope: !6, file: !1, line: 1, type: !9) 44!13 = !DILocalVariable(name: "b", scope: !6, file: !1, line: 1, type: !9) 45!14 = !DILocation(line: 1, column: 29, scope: !6) 46!15 = !DILocation(line: 1, column: 37, scope: !6) 47