Rafael Espindola | 7927836 | 2011-11-10 22:34:29 +0000 | [diff] [blame] | 1 | ; RUN: llc -mtriple=x86_64-apple-darwin %s -o %t -filetype=obj |
Eli Bendersky | e6abe83 | 2013-01-25 21:44:53 +0000 | [diff] [blame] | 2 | ; RUN: llvm-dwarfdump -debug-dump=info %t | FileCheck %s |
Rafael Espindola | 7927836 | 2011-11-10 22:34:29 +0000 | [diff] [blame] | 3 | |
| 4 | ; test that the DW_AT_specification is a back edge in the file. |
| 5 | |
Frederic Riss | d1cfc3c | 2014-10-06 03:36:31 +0000 | [diff] [blame] | 6 | ; CHECK: DW_TAG_subprogram |
David Blaikie | ce7a1bd | 2014-05-21 18:04:33 +0000 | [diff] [blame] | 7 | ; CHECK-NEXT: DW_AT_MIPS_linkage_name {{.*}} "_ZN3foo3barEv" |
| 8 | ; CHECK: DW_TAG_subprogram |
David Blaikie | 6800e39 | 2014-06-24 20:10:27 +0000 | [diff] [blame] | 9 | ; CHECK-NOT: DW_TAG |
Frederic Riss | d1cfc3c | 2014-10-06 03:36:31 +0000 | [diff] [blame] | 10 | ; CHECK: DW_AT_specification {{.*}} "_ZN3foo3barEv" |
Rafael Espindola | 7927836 | 2011-11-10 22:34:29 +0000 | [diff] [blame] | 11 | |
| 12 | |
| 13 | @_ZZN3foo3barEvE1x = constant i32 0, align 4 |
| 14 | |
| 15 | define void @_ZN3foo3barEv() { |
| 16 | entry: |
| 17 | ret void, !dbg !25 |
| 18 | } |
| 19 | |
| 20 | !llvm.dbg.cu = !{!0} |
Manman Ren | 409558f | 2013-11-22 21:49:45 +0000 | [diff] [blame] | 21 | !llvm.module.flags = !{!28} |
Rafael Espindola | 7927836 | 2011-11-10 22:34:29 +0000 | [diff] [blame] | 22 | |
Duncan P. N. Exon Smith | be7ea19 | 2014-12-15 19:07:53 +0000 | [diff] [blame^] | 23 | !0 = !{!"0x11\004\00clang version 3.0 ()\000\00\000\00\000", !27, !1, !1, !3, !18, !1} ; [ DW_TAG_compile_unit ] |
| 24 | !1 = !{} |
| 25 | !3 = !{!5} |
| 26 | !5 = !{!"0x2e\00bar\00bar\00_ZN3foo3barEv\004\000\001\000\006\00256\000\004", !6, null, !7, null, void ()* @_ZN3foo3barEv, null, !11, null} ; [ DW_TAG_subprogram ] [line 4] [def] [bar] |
| 27 | !6 = !{!"0x29", !27} ; [ DW_TAG_file_type ] |
| 28 | !7 = !{!"0x15\00\000\000\000\000\000\000", i32 0, null, null, !8, null, null, null} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ] |
| 29 | !8 = !{null, !9} |
| 30 | !9 = !{!"0xf\00\000\0064\0064\000\0064", i32 0, null, !10} ; [ DW_TAG_pointer_type ] |
| 31 | !10 = !{!"0x13\00foo\001\000\000\000\004\000", !27, null, null, null, null, null, null} ; [ DW_TAG_structure_type ] [foo] [line 1, size 0, align 0, offset 0] [decl] [from ] |
| 32 | !11 = !{!"0x2e\00bar\00bar\00_ZN3foo3barEv\002\000\000\000\006\00256\000\002", !6, !12, !7, null, null, null, i32 0, null} ; [ DW_TAG_subprogram ] |
| 33 | !12 = !{!"0x2\00foo\001\008\008\000\000\000", !27, null, null, !13, null, null} ; [ DW_TAG_class_type ] |
| 34 | !13 = !{!11} |
| 35 | !18 = !{!20} |
| 36 | !20 = !{!"0x34\00x\00x\00\005\001\001", !5, !6, !21, i32* @_ZZN3foo3barEvE1x, null} ; [ DW_TAG_variable ] |
| 37 | !21 = !{!"0x26\00\000\000\000\000\000", null, null, !22} ; [ DW_TAG_const_type ] |
| 38 | !22 = !{!"0x24\00int\000\0032\0032\000\000\005", null, null} ; [ DW_TAG_base_type ] |
| 39 | !25 = !{i32 6, i32 1, !26, null} |
| 40 | !26 = !{!"0xb\004\0017\000", !6, !5} ; [ DW_TAG_lexical_block ] |
| 41 | !27 = !{!"nsNativeAppSupportBase.ii", !"/Users/espindola/mozilla-central/obj-x86_64-apple-darwin11.2.0/toolkit/library"} |
| 42 | !28 = !{i32 1, !"Debug Info Version", i32 2} |