1 ; RUN: llc -O0 -asm-verbose < %s | FileCheck %s 2 ; One for a.c, second one for b.c and third one for abbrev. 3 4 ; CHECK: info_begin 5 ; CHECK: DW_TAG_compile_unit 6 ; CHECK-NOT: DW_TAG_compile_unit 7 ; CHECK: info_end 8 9 ; CHECK: info_begin 10 ; CHECK: DW_TAG_compile_unit 11 ; CHECK-NOT: DW_TAG_compile_unit 12 ; CHECK: info_end 13 14 ; CHECK: abbrev_begin 15 ; CHECK: DW_TAG_compile_unit 16 ; CHECK-NOT: DW_TAG_compile_unit 17 ; CHECK: abbrev_end 18 19 define i32 @foo() nounwind readnone ssp { 20 return: 21 ret i32 42, !dbg !0 22 } 23 24 define i32 @bar() nounwind readnone ssp { 25 return: 26 ret i32 21, !dbg !8 27 } 28 29 !llvm.dbg.cu = !{!4, !12} 30 !16 = metadata !{metadata !2} 31 !17 = metadata !{metadata !10} 32 33 !0 = metadata !{i32 3, i32 0, metadata !1, null} 34 !1 = metadata !{i32 786443, metadata !18, metadata !2, i32 2, i32 0, i32 0} ; [ DW_TAG_lexical_block ] 35 !2 = metadata !{i32 786478, metadata !18, metadata !3, metadata !"foo", metadata !"foo", metadata !"foo", i32 2, metadata !5, i1 false, i1 true, i32 0, i32 0, null, i1 false, i1 false, i32 ()* @foo, null, null, null, i32 0} ; [ DW_TAG_subprogram ] 36 !3 = metadata !{i32 786473, metadata !18} ; [ DW_TAG_file_type ] 37 !4 = metadata !{i32 786449, metadata !18, i32 1, metadata !"4.2.1 (Based on Apple Inc. build 5658) (LLVM build)", i1 false, metadata !"", i32 0, metadata !19, metadata !19, metadata !16, null, null, metadata !""} ; [ DW_TAG_compile_unit ] 38 !5 = metadata !{i32 786453, metadata !18, metadata !3, metadata !"", i32 0, i64 0, i64 0, i64 0, i32 0, null, metadata !6, i32 0, null} ; [ DW_TAG_subroutine_type ] 39 !6 = metadata !{metadata !7} 40 !7 = metadata !{i32 786468, metadata !18, metadata !3, metadata !"int", i32 0, i64 32, i64 32, i64 0, i32 0, i32 5} ; [ DW_TAG_base_type ] 41 !8 = metadata !{i32 3, i32 0, metadata !9, null} 42 !9 = metadata !{i32 786443, metadata !20, metadata !10, i32 2, i32 0, i32 0} ; [ DW_TAG_lexical_block ] 43 !10 = metadata !{i32 786478, metadata !20, metadata !11, metadata !"bar", metadata !"bar", metadata !"bar", i32 2, metadata !13, i1 false, i1 true, i32 0, i32 0, null, i1 false, i1 false, i32 ()* @bar, null, null, null, i32 0} ; [ DW_TAG_subprogram ] 44 !11 = metadata !{i32 786473, metadata !20} ; [ DW_TAG_file_type ] 45 !12 = metadata !{i32 786449, metadata !20, i32 1, metadata !"4.2.1 (Based on Apple Inc. build 5658) (LLVM build)", i1 false, metadata !"", i32 0, metadata !19, metadata !19, metadata !17, null, null, metadata !""} ; [ DW_TAG_compile_unit ] 46 !13 = metadata !{i32 786453, metadata !20, metadata !11, metadata !"", i32 0, i64 0, i64 0, i64 0, i32 0, null, metadata !14, i32 0, null} ; [ DW_TAG_subroutine_type ] 47 !14 = metadata !{metadata !15} 48 !15 = metadata !{i32 786468, metadata !20, metadata !11, metadata !"int", i32 0, i64 32, i64 32, i64 0, i32 0, i32 5} ; [ DW_TAG_base_type ] 49 !18 = metadata !{metadata !"a.c", metadata !"/tmp/"} 50 !19 = metadata !{i32 0} 51 !20 = metadata !{metadata !"b.c", metadata !"/tmp/"} 52