2011-11-12 09:57:54 +08:00
|
|
|
; RUN: llc -mtriple=x86_64-linux %s -o %t -filetype=obj
|
2013-01-26 05:44:53 +08:00
|
|
|
; RUN: llvm-dwarfdump -debug-dump=info %t | FileCheck %s
|
2011-11-12 09:57:54 +08:00
|
|
|
|
|
|
|
; test that we add DW_AT_inline even when we only have concrete out of line
|
|
|
|
; instances.
|
|
|
|
|
|
|
|
; first check that we have a TAG_subprogram at a given offset and it has
|
|
|
|
; AT_inline.
|
|
|
|
|
2014-03-07 09:19:31 +08:00
|
|
|
; CHECK: DW_TAG_class_type
|
|
|
|
; CHECK: DW_TAG_subprogram
|
2014-05-20 05:54:31 +08:00
|
|
|
; CHECK: [[ASSIGN_DECL:0x........]]: DW_TAG_subprogram
|
|
|
|
|
2014-05-22 02:04:33 +08:00
|
|
|
; CHECK: DW_TAG_class_type
|
|
|
|
; CHECK: [[RELEASE_DECL:0x........]]: DW_TAG_subprogram
|
|
|
|
; CHECK: [[DTOR_DECL:0x........]]: DW_TAG_subprogram
|
|
|
|
|
2014-05-20 05:54:31 +08:00
|
|
|
; CHECK: [[RELEASE:0x........]]: DW_TAG_subprogram
|
2014-05-22 02:04:33 +08:00
|
|
|
; CHECK: DW_AT_specification {{.*}} {[[RELEASE_DECL]]}
|
2014-05-20 05:54:31 +08:00
|
|
|
; CHECK: DW_TAG_formal_parameter
|
|
|
|
; CHECK-NOT: NULL
|
|
|
|
; CHECK-NOT: DW_TAG
|
|
|
|
; CHECK: DW_TAG_lexical_block
|
|
|
|
; CHECK-NOT: NULL
|
|
|
|
; CHECK-NOT: DW_TAG
|
|
|
|
; CHECK: DW_TAG_inlined_subroutine
|
|
|
|
; CHECK-NEXT: DW_AT_abstract_origin {{.*}} {[[ASSIGN:0x........]]}
|
|
|
|
; CHECK-NOT: NULL
|
|
|
|
; CHECK-NOT: DW_TAG
|
|
|
|
; CHECK: DW_TAG_inlined_subroutine
|
|
|
|
; CHECK-NEXT: DW_AT_abstract_origin {{.*}} {[[D1_ABS:0x........]]}
|
|
|
|
; CHECK-NOT: NULL
|
|
|
|
; CHECK-NOT: DW_TAG
|
|
|
|
; CHECK: DW_TAG_inlined_subroutine
|
|
|
|
; CHECK-NEXT: DW_AT_abstract_origin {{.*}} {[[D2_ABS:0x........]]}
|
|
|
|
|
|
|
|
; CHECK: [[D1_ABS]]: DW_TAG_subprogram
|
|
|
|
; CHECK-NEXT: DW_AT_{{.*}}linkage_name
|
2014-05-22 02:04:33 +08:00
|
|
|
; CHECK-NEXT: DW_AT_specification {{.*}} {[[DTOR_DECL]]}
|
2014-05-20 05:54:31 +08:00
|
|
|
; CHECK-NEXT: DW_AT_inline
|
2014-05-20 06:07:16 +08:00
|
|
|
; CHECK-NOT: DW_AT_inline
|
2014-05-22 06:41:17 +08:00
|
|
|
; CHECK-NOT: DW_TAG
|
|
|
|
; CHECK: [[D1_THIS_ABS:0x........]]: DW_TAG_formal_parameter
|
2014-05-20 05:54:31 +08:00
|
|
|
; CHECK: [[D2_ABS]]: DW_TAG_subprogram
|
2014-04-15 05:16:04 +08:00
|
|
|
; CHECK-NEXT: DW_AT_{{.*}}linkage_name
|
2014-05-22 02:04:33 +08:00
|
|
|
; CHECK-NEXT: DW_AT_specification {{.*}} {[[DTOR_DECL]]}
|
2011-11-12 09:57:54 +08:00
|
|
|
; CHECK-NEXT: DW_AT_inline
|
2014-05-20 06:07:16 +08:00
|
|
|
; CHECK-NOT: DW_AT_inline
|
|
|
|
; CHECK: DW_TAG
|
2011-11-12 09:57:54 +08:00
|
|
|
|
|
|
|
; and then that a TAG_subprogram refers to it with AT_abstract_origin.
|
|
|
|
|
2014-03-07 09:19:31 +08:00
|
|
|
; CHECK: DW_TAG_subprogram
|
|
|
|
; CHECK: DW_TAG_subprogram
|
2014-05-20 05:54:31 +08:00
|
|
|
; CHECK-NEXT: DW_AT_abstract_origin {{.*}} {[[D1_ABS]]}
|
|
|
|
; CHECK: DW_TAG_formal_parameter
|
2014-05-22 06:41:17 +08:00
|
|
|
; CHECK-NEXT: DW_AT_abstract_origin {{.*}} {[[D1_THIS_ABS]]}
|
2014-05-20 05:54:31 +08:00
|
|
|
; CHECK: DW_TAG_inlined_subroutine
|
|
|
|
; CHECK-NEXT: DW_AT_abstract_origin {{.*}} {[[D2_ABS]]}
|
|
|
|
|
2011-11-12 09:57:54 +08:00
|
|
|
|
|
|
|
define i32 @_ZN17nsAutoRefCnt7ReleaseEv() {
|
|
|
|
entry:
|
|
|
|
store i32 1, i32* null, align 4, !dbg !50
|
|
|
|
tail call void @_Z8moz_freePv(i8* null) nounwind, !dbg !54
|
|
|
|
ret i32 0
|
|
|
|
}
|
|
|
|
|
|
|
|
define void @_ZN17nsAutoRefCntD1Ev() {
|
|
|
|
entry:
|
|
|
|
tail call void @_Z8moz_freePv(i8* null) nounwind, !dbg !57
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
declare void @_Z8moz_freePv(i8*)
|
|
|
|
|
|
|
|
!llvm.dbg.cu = !{!0}
|
2013-11-23 05:49:45 +08:00
|
|
|
!llvm.module.flags = !{!60}
|
2011-11-12 09:57:54 +08:00
|
|
|
|
2014-02-04 09:23:52 +08:00
|
|
|
!0 = metadata !{i32 786449, metadata !59, i32 4, metadata !"clang version 3.1 ()", i1 true, metadata !"", i32 0, metadata !1, metadata !1, metadata !3, metadata !47, metadata !1, metadata !""} ; [ DW_TAG_compile_unit ]
|
|
|
|
!1 = metadata !{}
|
2013-02-02 13:56:24 +08:00
|
|
|
!3 = metadata !{metadata !5, metadata !23, metadata !27, metadata !31}
|
2013-09-07 05:03:58 +08:00
|
|
|
!5 = metadata !{i32 720942, metadata !6, null, metadata !"Release", metadata !"Release", metadata !"_ZN17nsAutoRefCnt7ReleaseEv", i32 14, metadata !7, i1 false, i1 true, i32 0, i32 0, null, i32 256, i1 true, i32* null, null, metadata !12, metadata !20, i32 14} ; [ DW_TAG_subprogram ] [line 14] [def] [Release]
|
2013-03-28 10:44:59 +08:00
|
|
|
!6 = metadata !{i32 720937, metadata !59} ; [ DW_TAG_file_type ]
|
2013-09-08 11:11:54 +08:00
|
|
|
!7 = metadata !{i32 720917, i32 0, null, i32 0, i32 0, i64 0, i64 0, i32 0, i32 0, null, metadata !8, i32 0, null, null, null} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ]
|
2011-11-12 09:57:54 +08:00
|
|
|
!8 = metadata !{metadata !9, metadata !10}
|
2013-03-28 10:44:59 +08:00
|
|
|
!9 = metadata !{i32 720932, null, null, metadata !"int", i32 0, i64 32, i64 32, i64 0, i32 0, i32 5} ; [ DW_TAG_base_type ]
|
2013-09-08 11:11:54 +08:00
|
|
|
!10 = metadata !{i32 786447, i32 0, null, i32 0, i32 0, i64 64, i64 64, i64 0, i32 64, metadata !11} ; [ DW_TAG_pointer_type ]
|
2013-09-07 05:03:58 +08:00
|
|
|
!11 = metadata !{i32 786451, metadata !59, null, metadata !"nsAutoRefCnt", i32 10, i64 0, i64 0, i32 0, i32 4, null, null, i32 0, null, null, null} ; [ DW_TAG_structure_type ] [nsAutoRefCnt] [line 10, size 0, align 0, offset 0] [decl] [from ]
|
2013-03-28 10:44:59 +08:00
|
|
|
!12 = metadata !{i32 720942, metadata !6, metadata !13, metadata !"Release", metadata !"Release", metadata !"_ZN17nsAutoRefCnt7ReleaseEv", i32 11, metadata !7, i1 false, i1 false, i32 0, i32 0, null, i32 256, i1 true, null, null, i32 0, metadata !18, i32 11} ; [ DW_TAG_subprogram ]
|
2013-09-07 02:13:59 +08:00
|
|
|
!13 = metadata !{i32 720898, metadata !59, null, metadata !"nsAutoRefCnt", i32 10, i64 8, i64 8, i32 0, i32 0, null, metadata !14, null, null, null} ; [ DW_TAG_class_type ]
|
2011-11-12 09:57:54 +08:00
|
|
|
!14 = metadata !{metadata !12, metadata !15}
|
2013-03-28 10:44:59 +08:00
|
|
|
!15 = metadata !{i32 720942, metadata !6, metadata !13, metadata !"~nsAutoRefCnt", metadata !"~nsAutoRefCnt", metadata !"", i32 12, metadata !16, i1 false, i1 false, i32 0, i32 0, null, i32 256, i1 true, null, null, i32 0, metadata !18, i32 12} ; [ DW_TAG_subprogram ]
|
2013-09-08 11:11:54 +08:00
|
|
|
!16 = metadata !{i32 720917, i32 0, null, i32 0, i32 0, i64 0, i64 0, i32 0, i32 0, null, metadata !17, i32 0, null, null, null} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ]
|
2011-11-12 09:57:54 +08:00
|
|
|
!17 = metadata !{null, metadata !10}
|
2014-05-15 05:52:46 +08:00
|
|
|
!18 = metadata !{}
|
2013-02-04 13:56:36 +08:00
|
|
|
!20 = metadata !{metadata !22}
|
2013-03-12 06:37:40 +08:00
|
|
|
!22 = metadata !{i32 786689, metadata !5, metadata !"this", metadata !6, i32 16777230, metadata !10, i32 64, i32 0} ; [ DW_TAG_arg_variable ]
|
2013-09-07 05:03:58 +08:00
|
|
|
!23 = metadata !{i32 720942, metadata !6, null, metadata !"~nsAutoRefCnt", metadata !"~nsAutoRefCnt", metadata !"_ZN17nsAutoRefCntD1Ev", i32 18, metadata !16, i1 false, i1 true, i32 0, i32 0, null, i32 256, i1 true, i32* null, null, metadata !15, metadata !24, i32 18} ; [ DW_TAG_subprogram ] [line 18] [def] [~nsAutoRefCnt]
|
2013-02-04 13:56:36 +08:00
|
|
|
!24 = metadata !{metadata !26}
|
2013-03-12 06:37:40 +08:00
|
|
|
!26 = metadata !{i32 786689, metadata !23, metadata !"this", metadata !6, i32 16777234, metadata !10, i32 64, i32 0} ; [ DW_TAG_arg_variable ]
|
2013-09-07 05:03:58 +08:00
|
|
|
!27 = metadata !{i32 720942, metadata !6, null, metadata !"~nsAutoRefCnt", metadata !"~nsAutoRefCnt", metadata !"_ZN17nsAutoRefCntD2Ev", i32 18, metadata !16, i1 false, i1 true, i32 0, i32 0, null, i32 256, i1 true, i32* null, null, metadata !15, metadata !28, i32 18} ; [ DW_TAG_subprogram ] [line 18] [def] [~nsAutoRefCnt]
|
2013-02-04 13:56:36 +08:00
|
|
|
!28 = metadata !{metadata !30}
|
2013-03-12 06:37:40 +08:00
|
|
|
!30 = metadata !{i32 786689, metadata !27, metadata !"this", metadata !6, i32 16777234, metadata !10, i32 64, i32 0} ; [ DW_TAG_arg_variable ]
|
2013-09-07 05:03:58 +08:00
|
|
|
!31 = metadata !{i32 720942, metadata !6, null, metadata !"operator=", metadata !"operator=", metadata !"_ZN12nsAutoRefCntaSEi", i32 4, metadata !32, i1 false, i1 true, i32 0, i32 0, null, i32 256, i1 true, null, null, metadata !36, metadata !43, i32 4} ; [ DW_TAG_subprogram ] [line 4] [def] [operator=]
|
2013-09-08 11:11:54 +08:00
|
|
|
!32 = metadata !{i32 720917, i32 0, null, i32 0, i32 0, i64 0, i64 0, i32 0, i32 0, null, metadata !33, i32 0, null, null, null} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ]
|
2011-11-12 09:57:54 +08:00
|
|
|
!33 = metadata !{metadata !9, metadata !34, metadata !9}
|
2013-09-08 11:11:54 +08:00
|
|
|
!34 = metadata !{i32 786447, i32 0, null, i32 0, i32 0, i64 64, i64 64, i64 0, i32 64, metadata !35} ; [ DW_TAG_pointer_type ]
|
2013-09-07 05:03:58 +08:00
|
|
|
!35 = metadata !{i32 786451, metadata !59, null, metadata !"nsAutoRefCnt", i32 2, i64 0, i64 0, i32 0, i32 4, null, null, i32 0, null, null, null} ; [ DW_TAG_structure_type ] [nsAutoRefCnt] [line 2, size 0, align 0, offset 0] [decl] [from ]
|
2013-03-28 10:44:59 +08:00
|
|
|
!36 = metadata !{i32 720942, metadata !6, metadata !37, metadata !"operator=", metadata !"operator=", metadata !"_ZN12nsAutoRefCntaSEi", i32 4, metadata !32, i1 false, i1 false, i32 0, i32 0, null, i32 256, i1 true, null, null, i32 0, metadata !18, i32 4} ; [ DW_TAG_subprogram ]
|
2013-08-27 06:39:55 +08:00
|
|
|
!37 = metadata !{i32 720898, metadata !59, null, metadata !"nsAutoRefCnt", i32 2, i64 32, i64 32, i32 0, i32 0, null, metadata !38, i32 0, null, null, null} ; [ DW_TAG_class_type ] [nsAutoRefCnt] [line 2, size 32, align 32, offset 0] [def] [from ]
|
2011-11-12 09:57:54 +08:00
|
|
|
!38 = metadata !{metadata !39, metadata !40, metadata !36}
|
2013-03-28 10:44:59 +08:00
|
|
|
!39 = metadata !{i32 786445, metadata !59, metadata !37, metadata !"mValue", i32 7, i64 32, i64 32, i64 0, i32 0, metadata !9} ; [ DW_TAG_member ]
|
|
|
|
!40 = metadata !{i32 720942, metadata !6, metadata !37, metadata !"nsAutoRefCnt", metadata !"nsAutoRefCnt", metadata !"", i32 3, metadata !41, i1 false, i1 false, i32 0, i32 0, null, i32 256, i1 true, null, null, i32 0, metadata !18, i32 3} ; [ DW_TAG_subprogram ]
|
2013-09-08 11:11:54 +08:00
|
|
|
!41 = metadata !{i32 720917, i32 0, null, i32 0, i32 0, i64 0, i64 0, i32 0, i32 0, null, metadata !42, i32 0, null, null, null} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ]
|
2011-11-12 09:57:54 +08:00
|
|
|
!42 = metadata !{null, metadata !34}
|
2013-02-04 13:56:36 +08:00
|
|
|
!43 = metadata !{metadata !45, metadata !46}
|
2013-03-12 06:37:40 +08:00
|
|
|
!45 = metadata !{i32 786689, metadata !31, metadata !"this", metadata !6, i32 16777220, metadata !34, i32 64, i32 0} ; [ DW_TAG_arg_variable ]
|
|
|
|
!46 = metadata !{i32 786689, metadata !31, metadata !"aValue", metadata !6, i32 33554436, metadata !9, i32 0, i32 0} ; [ DW_TAG_arg_variable ]
|
2013-02-02 13:56:24 +08:00
|
|
|
!47 = metadata !{metadata !49}
|
2013-03-12 06:37:40 +08:00
|
|
|
!49 = metadata !{i32 720948, i32 0, null, metadata !"mRefCnt", metadata !"mRefCnt", metadata !"", metadata !6, i32 9, metadata !37, i32 0, i32 1, i32* null, null} ; [ DW_TAG_variable ]
|
2011-11-12 09:57:54 +08:00
|
|
|
!50 = metadata !{i32 5, i32 5, metadata !51, metadata !52}
|
2013-03-28 10:44:59 +08:00
|
|
|
!51 = metadata !{i32 786443, metadata !6, metadata !31, i32 4, i32 29, i32 2} ; [ DW_TAG_lexical_block ]
|
2011-11-12 09:57:54 +08:00
|
|
|
!52 = metadata !{i32 15, i32 0, metadata !53, null}
|
2013-03-28 10:44:59 +08:00
|
|
|
!53 = metadata !{i32 786443, metadata !6, metadata !5, i32 14, i32 34, i32 0} ; [ DW_TAG_lexical_block ]
|
2011-11-12 09:57:54 +08:00
|
|
|
!54 = metadata !{i32 19, i32 3, metadata !55, metadata !56}
|
2013-03-28 10:44:59 +08:00
|
|
|
!55 = metadata !{i32 786443, metadata !6, metadata !27, i32 18, i32 41, i32 1} ; [ DW_TAG_lexical_block ]
|
2011-11-12 09:57:54 +08:00
|
|
|
!56 = metadata !{i32 18, i32 41, metadata !23, metadata !52}
|
|
|
|
!57 = metadata !{i32 19, i32 3, metadata !55, metadata !58}
|
|
|
|
!58 = metadata !{i32 18, i32 41, metadata !23, null}
|
2013-03-18 05:13:55 +08:00
|
|
|
!59 = metadata !{metadata !"nsAutoRefCnt.ii", metadata !"/Users/espindola/mozilla-central/obj-x86_64-apple-darwin11.2.0/netwerk/base/src"}
|
2013-11-23 05:49:45 +08:00
|
|
|
!60 = metadata !{i32 1, metadata !"Debug Info Version", i32 1}
|