2012-03-16 00:55:40 +01:00
|
|
|
; RUN: llc -mtriple=x86_64-apple-darwin %s -o %t -filetype=obj
|
2013-01-25 22:44:53 +01:00
|
|
|
; RUN: llvm-dwarfdump -debug-dump=info %t | FileCheck %s
|
2012-03-16 00:55:40 +01:00
|
|
|
|
|
|
|
; Make sure that structures have a decl file and decl line attached.
|
2013-10-29 06:49:41 +01:00
|
|
|
; CHECK: DW_TAG_structure_type
|
2012-03-16 00:55:40 +01:00
|
|
|
; CHECK: DW_AT_decl_file
|
|
|
|
; CHECK: DW_AT_decl_line
|
|
|
|
; CHECK: DW_TAG_member
|
|
|
|
|
|
|
|
%struct.foo = type { i32 }
|
|
|
|
|
|
|
|
@f = common global %struct.foo zeroinitializer, align 4
|
|
|
|
|
|
|
|
!llvm.dbg.cu = !{!0}
|
2013-11-22 22:49:45 +01:00
|
|
|
!llvm.module.flags = !{!12}
|
2012-03-16 00:55:40 +01:00
|
|
|
|
2014-02-04 02:23:52 +01:00
|
|
|
!0 = metadata !{i32 786449, metadata !11, i32 12, metadata !"clang version 3.1 (trunk 152837) (llvm/trunk 152845)", i1 false, metadata !"", i32 0, metadata !1, metadata !1, metadata !1, metadata !3, metadata !1, metadata !""} ; [ DW_TAG_compile_unit ]
|
|
|
|
!1 = metadata !{}
|
2013-02-02 06:56:24 +01:00
|
|
|
!3 = metadata !{metadata !5}
|
2013-03-11 23:37:40 +01:00
|
|
|
!5 = metadata !{i32 786484, i32 0, null, metadata !"f", metadata !"f", metadata !"", metadata !6, i32 5, metadata !7, i32 0, i32 1, %struct.foo* @f, null} ; [ DW_TAG_variable ]
|
2013-03-28 03:44:59 +01:00
|
|
|
!6 = metadata !{i32 786473, metadata !11} ; [ DW_TAG_file_type ]
|
2013-09-06 20:13:59 +02:00
|
|
|
!7 = metadata !{i32 786451, metadata !11, null, metadata !"foo", i32 1, i64 32, i64 32, i32 0, i32 0, null, metadata !8, i32 0, null, null, null} ; [ DW_TAG_structure_type ] [foo] [line 1, size 32, align 32, offset 0] [def] [from ]
|
2012-03-16 00:55:40 +01:00
|
|
|
!8 = metadata !{metadata !9}
|
2013-03-28 03:44:59 +01:00
|
|
|
!9 = metadata !{i32 786445, metadata !11, metadata !7, metadata !"a", i32 2, i64 32, i64 32, i64 0, i32 0, metadata !10} ; [ DW_TAG_member ]
|
|
|
|
!10 = metadata !{i32 786468, null, null, metadata !"int", i32 0, i64 32, i64 32, i64 0, i32 0, i32 5} ; [ DW_TAG_base_type ]
|
2013-03-17 22:13:55 +01:00
|
|
|
!11 = metadata !{metadata !"struct_bug.c", metadata !"/Users/echristo/tmp"}
|
2013-11-22 22:49:45 +01:00
|
|
|
!12 = metadata !{i32 1, metadata !"Debug Info Version", i32 1}
|