diff options
Diffstat (limited to 'llvm/test/DebugInfo/X86/bitfields-dwarf4.ll')
-rw-r--r-- | llvm/test/DebugInfo/X86/bitfields-dwarf4.ll | 50 |
1 files changed, 23 insertions, 27 deletions
diff --git a/llvm/test/DebugInfo/X86/bitfields-dwarf4.ll b/llvm/test/DebugInfo/X86/bitfields-dwarf4.ll index d072fda7f72..6cacdd6e4d0 100644 --- a/llvm/test/DebugInfo/X86/bitfields-dwarf4.ll +++ b/llvm/test/DebugInfo/X86/bitfields-dwarf4.ll @@ -21,30 +21,32 @@ target triple = "x86_64-apple-macosx" %struct.PackedBits = type <{ i8, i32 }> -@s = common global %struct.PackedBits zeroinitializer, align 1, !dbg !4 +@s = common global %struct.PackedBits zeroinitializer, align 1, !dbg !0 -!llvm.dbg.cu = !{!0} -!llvm.module.flags = !{!14, !15, !16} -!llvm.ident = !{!17} - -!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang version 3.9.0 (trunk 267633)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, globals: !3) -!1 = !DIFile(filename: "bitfield.c", directory: "/Volumes/Data/llvm") -!2 = !{} -!3 = !{!4} -!4 = distinct !DIGlobalVariableExpression(var: !DIGlobalVariable(name: "s", scope: !0, file: !1, line: 8, type: !5, isLocal: false, isDefinition: true)) -!5 = distinct !DICompositeType(tag: DW_TAG_structure_type, name: "PackedBits", file: !1, line: 3, size: 40, elements: !6) -!6 = !{!7, !9, !13} +!llvm.dbg.cu = !{!2} +!llvm.module.flags = !{!15, !16, !17} +!llvm.ident = !{!18} +!0 = distinct !DIGlobalVariableExpression(var: !1) +!1 = !DIGlobalVariable(name: "s", scope: !2, file: !3, line: 8, type: !6, isLocal: false, isDefinition: true) +!2 = distinct !DICompileUnit(language: DW_LANG_C99, file: !3, producer: "clang version 3.9.0 (trunk 267633)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !4, globals: !5) +!3 = !DIFile(filename: "bitfield.c", directory: "/Volumes/Data/llvm") +!4 = !{} +!5 = !{!0} +!6 = distinct !DICompositeType(tag: DW_TAG_structure_type, name: "PackedBits", file: !3, line: 3, size: 40, elements: !7) +!7 = !{!8, !10, !14} +!8 = !DIDerivedType(tag: DW_TAG_member, name: "a", scope: !6, file: !3, line: 5, baseType: !9, size: 8) ; CHECK: DW_TAG_member ; CHECK-NEXT: DW_AT_name{{.*}}"a" ; CHECK-NOT: DW_TAG ; CHECK-NOT: DW_AT_bit_offset ; CHECK-NOT: DW_AT_data_bit_offset ; CHECK: DW_AT_data_member_location [DW_FORM_data1] (0x00) -!7 = !DIDerivedType(tag: DW_TAG_member, name: "a", scope: !5, file: !1, line: 5, baseType: !8, size: 8) - -!8 = !DIBasicType(name: "char", size: 8, encoding: DW_ATE_signed_char) - +!9 = !DIBasicType(name: "char", size: 8, encoding: DW_ATE_signed_char) +!10 = !DIDerivedType(tag: DW_TAG_member, name: "b", scope: !6, file: !3, line: 6, baseType: !11, size: 5, offset: 8) +!11 = !DIDerivedType(tag: DW_TAG_typedef, name: "uint32_t", file: !12, line: 183, baseType: !13) +!12 = !DIFile(filename: "/Volumes/Data/llvm/_build.ninja.release/bin/../lib/clang/3.9.0/include/stdint.h", directory: "/Volumes/Data/llvm") +!13 = !DIBasicType(name: "unsigned int", size: 32, encoding: DW_ATE_unsigned) ; CHECK: DW_TAG_member ; CHECK-NEXT: DW_AT_name{{.*}}"b" ; CHECK-NOT: DW_TAG @@ -54,12 +56,10 @@ target triple = "x86_64-apple-macosx" ; CHECK-NOT: DW_AT_byte_size ; CHECK-NEXT: DW_AT_data_bit_offset [DW_FORM_data1] (0x08) ; CHECK-NOT: DW_AT_data_member_location -!9 = !DIDerivedType(tag: DW_TAG_member, name: "b", scope: !5, file: !1, line: 6, baseType: !10, size: 5, offset: 8) - -!10 = !DIDerivedType(tag: DW_TAG_typedef, name: "uint32_t", file: !11, line: 183, baseType: !12) -!11 = !DIFile(filename: "/Volumes/Data/llvm/_build.ninja.release/bin/../lib/clang/3.9.0/include/stdint.h", directory: "/Volumes/Data/llvm") -!12 = !DIBasicType(name: "unsigned int", size: 32, encoding: DW_ATE_unsigned) - +!14 = !DIDerivedType(tag: DW_TAG_member, name: "c", scope: !6, file: !3, line: 7, baseType: !11, size: 27, offset: 13) +!15 = !{i32 2, !"Dwarf Version", i32 4} +!16 = !{i32 2, !"Debug Info Version", i32 3} +!17 = !{i32 1, !"PIC Level", i32 2} ; CHECK: DW_TAG_member ; CHECK-NEXT: DW_AT_name{{.*}}"c" ; CHECK-NOT: DW_TAG @@ -69,9 +69,5 @@ target triple = "x86_64-apple-macosx" ; CHECK-NEXT: DW_AT_data_bit_offset [DW_FORM_data1] (0x0d) ; CHECK-NOT: DW_AT_data_member_location ; CHECK: DW_TAG -!13 = !DIDerivedType(tag: DW_TAG_member, name: "c", scope: !5, file: !1, line: 7, baseType: !10, size: 27, offset: 13) +!18 = !{!"clang version 3.9.0 (trunk 267633)"} -!14 = !{i32 2, !"Dwarf Version", i32 4} -!15 = !{i32 2, !"Debug Info Version", i32 3} -!16 = !{i32 1, !"PIC Level", i32 2} -!17 = !{!"clang version 3.9.0 (trunk 267633)"} |