Debug info: On ARM ensure that the data sections come before the
[oota-llvm.git] / test / DebugInfo / ARM / sectionorder.ll
1 ; RUN: llc  -filetype=asm %s -o - | FileCheck %s
2
3 ; Verifies that the DWARF* sections come _after_ the data sections.
4 ; rdar://problem/15623193
5
6 ; CHECK: .section       __TEXT,__text,
7 ; CHECK-NOT: __DWARF,__debug
8 ; CHECK: .section       __TEXT,__cstring,cstring_literals
9 ; CHECK-NOT: __DWARF,__debug
10 ; CHECK: .section       __DATA,__data
11 ; CHECK-NOT: __DWARF,__debug
12 ; CHECK: .section       __DATA,__common
13 ; CHECK-NOT: __DWARF,__debug
14 ; CHECK: .section       __DATA,__bss
15 ; CHECK-NOT: __DWARF,__debug
16 ; CHECK: .section       __DATA,__nl_symbol_ptr,non_lazy_symbol_pointers
17 target triple = "thumbv7-apple-ios"
18
19 !llvm.module.flags = !{!3, !4}
20 !llvm.dbg.cu = !{!0}
21
22 !0 = metadata !{i32 786449, i32 0, i32 12, metadata !"test.c", metadata !"/Volumes/Data/radar/15623193", metadata !"LLVM", i1 true, i1 false, metadata !"", i32 0, metadata !1, metadata !1, metadata !1, metadata !1} ; [ DW_TAG_compile_unit ] [/Volumes/Data/radar/15623193/test.c] [DW_LANG_C99]
23 !1 = metadata !{metadata !2}
24 !2 = metadata !{i32 0}
25 !3 = metadata !{i32 2, metadata !"Dwarf Version", i32 2}
26 !4 = metadata !{i32 1, metadata !"Debug Info Version", i32 1}