2012-05-23 08:09:20 +08:00
|
|
|
; RUN: llc -O0 -mtriple=x86_64-apple-darwin %s -o %t -filetype=obj
|
2013-01-26 05:44:53 +08:00
|
|
|
; RUN: llvm-dwarfdump -debug-dump=info %t | FileCheck %s
|
2012-05-23 08:09:20 +08:00
|
|
|
|
|
|
|
@a = global i32 0, align 4
|
|
|
|
@b = global i64 0, align 8
|
|
|
|
@c = global i32 0, align 4
|
|
|
|
|
|
|
|
!llvm.dbg.cu = !{!0}
|
|
|
|
|
2013-03-27 08:07:26 +08:00
|
|
|
!0 = metadata !{i32 786449, metadata !22, null, 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 !""} ; [ DW_TAG_compile_unit ]
|
2013-02-02 13:56:24 +08:00
|
|
|
!1 = metadata !{metadata !3, metadata !8, metadata !12}
|
2013-03-27 08:07:26 +08:00
|
|
|
!3 = metadata !{i32 786436, metadata !4, null, null, metadata !"A", i32 1, i64 32, i64 32, i32 0, i32 0, metadata !5, metadata !6, i32 0, i32 0} ; [ DW_TAG_enumeration_type ]
|
|
|
|
!4 = metadata !{i32 786473, metadata !22, null} ; [ DW_TAG_file_type ]
|
|
|
|
!5 = metadata !{i32 786468, null, null, null, metadata !"int", i32 0, i64 32, i64 32, i64 0, i32 0, i32 5} ; [ DW_TAG_base_type ]
|
2012-05-23 08:09:20 +08:00
|
|
|
!6 = metadata !{metadata !7}
|
|
|
|
!7 = metadata !{i32 786472, metadata !"A1", i64 1} ; [ DW_TAG_enumerator ]
|
2013-03-27 08:07:26 +08:00
|
|
|
!8 = metadata !{i32 786436, metadata !4, null, null, metadata !"B", i32 2, i64 64, i64 64, i32 0, i32 0, metadata !9, metadata !10, i32 0, i32 0} ; [ DW_TAG_enumeration_type ]
|
|
|
|
!9 = metadata !{i32 786468, null, null, null, metadata !"long unsigned int", i32 0, i64 64, i64 64, i64 0, i32 0, i32 7} ; [ DW_TAG_base_type ]
|
2012-05-23 08:09:20 +08:00
|
|
|
!10 = metadata !{metadata !11}
|
|
|
|
!11 = metadata !{i32 786472, metadata !"B1", i64 1} ; [ DW_TAG_enumerator ]
|
2013-03-27 08:07:26 +08:00
|
|
|
!12 = metadata !{i32 786436, metadata !4, null, null, metadata !"C", i32 3, i64 32, i64 32, i32 0, i32 0, null, metadata !13, i32 0, i32 0} ; [ DW_TAG_enumeration_type ]
|
2012-05-23 08:09:20 +08:00
|
|
|
!13 = metadata !{metadata !14}
|
|
|
|
!14 = metadata !{i32 786472, metadata !"C1", i64 1} ; [ DW_TAG_enumerator ]
|
2013-02-02 13:56:24 +08:00
|
|
|
!15 = metadata !{i32 0}
|
|
|
|
!17 = metadata !{metadata !19, metadata !20, metadata !21}
|
2013-03-12 06:37:40 +08:00
|
|
|
!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 ]
|
|
|
|
!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 ]
|
|
|
|
!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 ]
|
2013-03-18 05:13:55 +08:00
|
|
|
!22 = metadata !{metadata !"foo.cpp", metadata !"/Users/echristo/tmp"}
|
2012-05-23 08:09:20 +08:00
|
|
|
|
|
|
|
; CHECK: DW_TAG_enumeration_type [3]
|
2012-08-02 02:19:01 +08:00
|
|
|
; CHECK: DW_AT_type [DW_FORM_ref4] (cu + 0x0026 => {0x00000026})
|
2012-05-23 08:09:20 +08:00
|
|
|
; CHECK: DW_AT_enum_class [DW_FORM_flag] (0x01)
|
|
|
|
; CHECK: DW_AT_name [DW_FORM_strp] ( .debug_str[{{.*}}] = "A")
|
|
|
|
|
|
|
|
; CHECK: DW_TAG_enumeration_type [3] *
|
2012-08-02 02:19:01 +08:00
|
|
|
; CHECK: DW_AT_type [DW_FORM_ref4] (cu + 0x0057 => {0x00000057})
|
2012-05-23 08:09:20 +08:00
|
|
|
; CHECK: DW_AT_enum_class [DW_FORM_flag] (0x01)
|
|
|
|
; CHECK: DW_AT_name [DW_FORM_strp] ( .debug_str[{{.*}}] = "B")
|
|
|
|
|
|
|
|
; CHECK: DW_TAG_enumeration_type [6]
|
|
|
|
; CHECK-NOT: DW_AT_enum_class
|
|
|
|
; CHECK: DW_AT_name [DW_FORM_strp] ( .debug_str[{{.*}}] = "C")
|