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 -debug-dump=info %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 !llvm.module.flags = !{!23}
     10 
     11 !0 = metadata !{i32 786449, metadata !22, i32 4, metadata !"clang version 3.2 (trunk 157269) (llvm/trunk 157264)", i1 false, metadata !"", i32 0, metadata !1, metadata !15, metadata !15, metadata !17,  metadata !15, metadata !""} ; [ DW_TAG_compile_unit ]
     12 !1 = metadata !{metadata !3, metadata !8, metadata !12}
     13 !3 = metadata !{i32 786436, metadata !4, null, metadata !"A", i32 1, i64 32, i64 32, i32 0, i32 0, metadata !5, metadata !6, i32 0, null, null, null} ; [ DW_TAG_enumeration_type ] [A] [line 1, size 32, align 32, offset 0] [def] [from int]
     14 !4 = metadata !{i32 786473, metadata !22} ; [ DW_TAG_file_type ]
     15 !5 = metadata !{i32 786468, null, null, metadata !"int", 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, metadata !4, null, metadata !"B", i32 2, i64 64, i64 64, i32 0, i32 0, metadata !9, metadata !10, i32 0, null, null, null} ; [ DW_TAG_enumeration_type ] [B] [line 2, size 64, align 64, offset 0] [def] [from long unsigned int]
     19 !9 = metadata !{i32 786468, null, null, metadata !"long unsigned int", 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, metadata !4, null, metadata !"C", i32 3, i64 32, i64 32, i32 0, i32 0, null, metadata !13, i32 0, null, null, null} ; [ DW_TAG_enumeration_type ] [C] [line 3, size 32, align 32, offset 0] [def] [from ]
     23 !13 = metadata !{metadata !14}
     24 !14 = metadata !{i32 786472, metadata !"C1", i64 1} ; [ DW_TAG_enumerator ]
     25 !15 = metadata !{}
     26 !17 = metadata !{metadata !19, metadata !20, metadata !21}
     27 !19 = metadata !{i32 786484, i32 0, null, metadata !"a", metadata !"a", metadata !"", metadata !4, i32 4, metadata !3, i32 0, i32 1, i32* @a, null} ; [ DW_TAG_variable ]
     28 !20 = metadata !{i32 786484, i32 0, null, metadata !"b", metadata !"b", metadata !"", metadata !4, i32 5, metadata !8, i32 0, i32 1, i64* @b, null} ; [ DW_TAG_variable ]
     29 !21 = metadata !{i32 786484, i32 0, null, metadata !"c", metadata !"c", metadata !"", metadata !4, i32 6, metadata !12, i32 0, i32 1, i32* @c, null} ; [ DW_TAG_variable ]
     30 !22 = metadata !{metadata !"foo.cpp", metadata !"/Users/echristo/tmp"}
     31 
     32 ; CHECK: DW_TAG_enumeration_type [{{.*}}]
     33 ; CHECK: DW_AT_type [DW_FORM_ref4]
     34 ; CHECK: DW_AT_enum_class [DW_FORM_flag_present] (true)
     35 ; CHECK: DW_AT_name [DW_FORM_strp]      ( .debug_str[{{.*}}] = "A")
     36 
     37 ; CHECK: DW_TAG_enumeration_type [{{.*}}] *
     38 ; CHECK: DW_AT_type [DW_FORM_ref4]
     39 ; CHECK: DW_AT_enum_class [DW_FORM_flag_present] (true)
     40 ; CHECK: DW_AT_name [DW_FORM_strp]          ( .debug_str[{{.*}}] = "B")
     41 
     42 ; CHECK: DW_TAG_enumeration_type [6]
     43 ; CHECK-NOT: DW_AT_enum_class
     44 ; CHECK: DW_AT_name [DW_FORM_strp]      ( .debug_str[{{.*}}] = "C")
     45 !23 = metadata !{i32 1, metadata !"Debug Info Version", i32 1}
     46