2012-05-23 00:09:20 +00:00
|
|
|
; RUN: llc -O0 -mtriple=x86_64-apple-darwin %s -o %t -filetype=obj
|
2013-01-25 21:44:53 +00:00
|
|
|
; RUN: llvm-dwarfdump -debug-dump=info %t | FileCheck %s
|
2012-05-23 00:09:20 +00:00
|
|
|
|
|
|
|
@a = global i32 0, align 4
|
|
|
|
@b = global i64 0, align 8
|
|
|
|
@c = global i32 0, align 4
|
|
|
|
|
|
|
|
!llvm.dbg.cu = !{!0}
|
2013-11-22 21:49:45 +00:00
|
|
|
!llvm.module.flags = !{!23}
|
2012-05-23 00:09:20 +00:00
|
|
|
|
2014-02-04 01:23:52 +00:00
|
|
|
!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 ]
|
2013-02-02 05:56:24 +00:00
|
|
|
!1 = metadata !{metadata !3, metadata !8, metadata !12}
|
2013-09-06 21:03:58 +00:00
|
|
|
!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]
|
2013-03-28 02:44:59 +00:00
|
|
|
!4 = metadata !{i32 786473, metadata !22} ; [ DW_TAG_file_type ]
|
|
|
|
!5 = metadata !{i32 786468, null, null, metadata !"int", i32 0, i64 32, i64 32, i64 0, i32 0, i32 5} ; [ DW_TAG_base_type ]
|
2012-05-23 00:09:20 +00:00
|
|
|
!6 = metadata !{metadata !7}
|
|
|
|
!7 = metadata !{i32 786472, metadata !"A1", i64 1} ; [ DW_TAG_enumerator ]
|
2013-09-06 21:03:58 +00:00
|
|
|
!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]
|
2013-03-28 02:44:59 +00:00
|
|
|
!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 ]
|
2012-05-23 00:09:20 +00:00
|
|
|
!10 = metadata !{metadata !11}
|
|
|
|
!11 = metadata !{i32 786472, metadata !"B1", i64 1} ; [ DW_TAG_enumerator ]
|
2013-09-06 21:03:58 +00:00
|
|
|
!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 ]
|
2012-05-23 00:09:20 +00:00
|
|
|
!13 = metadata !{metadata !14}
|
|
|
|
!14 = metadata !{i32 786472, metadata !"C1", i64 1} ; [ DW_TAG_enumerator ]
|
2014-02-04 01:23:52 +00:00
|
|
|
!15 = metadata !{}
|
2013-02-02 05:56:24 +00:00
|
|
|
!17 = metadata !{metadata !19, metadata !20, metadata !21}
|
2013-03-11 22:37:40 +00: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-17 21:13:55 +00:00
|
|
|
!22 = metadata !{metadata !"foo.cpp", metadata !"/Users/echristo/tmp"}
|
2012-05-23 00:09:20 +00:00
|
|
|
|
2013-10-29 05:49:41 +00:00
|
|
|
; CHECK: DW_TAG_enumeration_type [{{.*}}]
|
2013-09-04 22:21:24 +00:00
|
|
|
; CHECK: DW_AT_type [DW_FORM_ref4]
|
2013-10-04 22:40:10 +00:00
|
|
|
; CHECK: DW_AT_enum_class [DW_FORM_flag_present] (true)
|
2012-05-23 00:09:20 +00:00
|
|
|
; CHECK: DW_AT_name [DW_FORM_strp] ( .debug_str[{{.*}}] = "A")
|
|
|
|
|
2013-10-29 05:49:41 +00:00
|
|
|
; CHECK: DW_TAG_enumeration_type [{{.*}}] *
|
2013-09-04 22:21:24 +00:00
|
|
|
; CHECK: DW_AT_type [DW_FORM_ref4]
|
2013-10-04 22:40:10 +00:00
|
|
|
; CHECK: DW_AT_enum_class [DW_FORM_flag_present] (true)
|
2012-05-23 00:09:20 +00:00
|
|
|
; 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")
|
2013-11-22 21:49:45 +00:00
|
|
|
!23 = metadata !{i32 1, metadata !"Debug Info Version", i32 1}
|