Home | History | Annotate | Download | only in X86
      1 ; RUN: llc -O0 -mtriple=x86_64-apple-darwin %s -o %t -filetype=obj
      2 ; RUN: llvm-dwarfdump %t | FileCheck %s
      3 
      4 @a = global i32 0, align 4
      5 @b = global i64 0, align 8
      6 @c = global i32 0, align 4
      7 
      8 !llvm.dbg.cu = !{!0}
      9 
     10 !0 = metadata !{i32 786449, i32 0, i32 4, metadata !"foo.cpp", metadata !"/Users/echristo/tmp", metadata !"clang version 3.2 (trunk 157269) (llvm/trunk 157264)", i1 true, i1 false, metadata !"", i32 0, metadata !1, metadata !15, metadata !15, metadata !17} ; [ DW_TAG_compile_unit ]
     11 !1 = metadata !{metadata !2}
     12 !2 = metadata !{metadata !3, metadata !8, metadata !12}
     13 !3 = metadata !{i32 786436, null, metadata !"A", metadata !4, i32 1, i64 32, i64 32, i32 0, i32 0, metadata !5, metadata !6, i32 0, i32 0} ; [ DW_TAG_enumeration_type ]
     14 !4 = metadata !{i32 786473, metadata !"foo.cpp", metadata !"/Users/echristo/tmp", null} ; [ DW_TAG_file_type ]
     15 !5 = metadata !{i32 786468, null, metadata !"int", null, i32 0, i64 32, i64 32, i64 0, i32 0, i32 5} ; [ DW_TAG_base_type ]
     16 !6 = metadata !{metadata !7}
     17 !7 = metadata !{i32 786472, metadata !"A1", i64 1} ; [ DW_TAG_enumerator ]
     18 !8 = metadata !{i32 786436, null, metadata !"B", metadata !4, i32 2, i64 64, i64 64, i32 0, i32 0, metadata !9, metadata !10, i32 0, i32 0} ; [ DW_TAG_enumeration_type ]
     19 !9 = metadata !{i32 786468, null, metadata !"long unsigned int", null, i32 0, i64 64, i64 64, i64 0, i32 0, i32 7} ; [ DW_TAG_base_type ]
     20 !10 = metadata !{metadata !11}
     21 !11 = metadata !{i32 786472, metadata !"B1", i64 1} ; [ DW_TAG_enumerator ]
     22 !12 = metadata !{i32 786436, null, metadata !"C", metadata !4, i32 3, i64 32, i64 32, i32 0, i32 0, null, metadata !13, i32 0, i32 0} ; [ DW_TAG_enumeration_type ]
     23 !13 = metadata !{metadata !14}
     24 !14 = metadata !{i32 786472, metadata !"C1", i64 1} ; [ DW_TAG_enumerator ]
     25 !15 = metadata !{metadata !16}
     26 !16 = metadata !{i32 0}
     27 !17 = metadata !{metadata !18}
     28 !18 = metadata !{metadata !19, metadata !20, metadata !21}
     29 !19 = metadata !{i32 786484, i32 0, null, metadata !"a", metadata !"a", metadata !"", metadata !4, i32 4, metadata !3, i32 0, i32 1, i32* @a} ; [ DW_TAG_variable ]
     30 !20 = metadata !{i32 786484, i32 0, null, metadata !"b", metadata !"b", metadata !"", metadata !4, i32 5, metadata !8, i32 0, i32 1, i64* @b} ; [ DW_TAG_variable ]
     31 !21 = metadata !{i32 786484, i32 0, null, metadata !"c", metadata !"c", metadata !"", metadata !4, i32 6, metadata !12, i32 0, i32 1, i32* @c} ; [ DW_TAG_variable ]
     32 
     33 ; CHECK: DW_TAG_enumeration_type [3]
     34 ; CHECK: DW_AT_type [DW_FORM_ref4]      (cu + 0x0026 => {0x00000026})
     35 ; CHECK: DW_AT_enum_class [DW_FORM_flag]    (0x01)
     36 ; CHECK: DW_AT_name [DW_FORM_strp]      ( .debug_str[{{.*}}] = "A")
     37 
     38 ; CHECK: DW_TAG_enumeration_type [3] *
     39 ; CHECK: DW_AT_type [DW_FORM_ref4]      (cu + 0x0057 => {0x00000057})
     40 ; CHECK: DW_AT_enum_class [DW_FORM_flag]    (0x01)
     41 ; CHECK: DW_AT_name [DW_FORM_strp]          ( .debug_str[{{.*}}] = "B")
     42 
     43 ; CHECK: DW_TAG_enumeration_type [6]
     44 ; CHECK-NOT: DW_AT_enum_class
     45 ; CHECK: DW_AT_name [DW_FORM_strp]      ( .debug_str[{{.*}}] = "C")
     46