]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - opencl/llvm.git/blob - test/MC/ARM/coff-debugging-secrel.ll
IR: Move MDLocation into place
[opencl/llvm.git] / test / MC / ARM / coff-debugging-secrel.ll
1 ; RUN: llc -mtriple thumbv7--windows-itanium -filetype obj -o - %s \
2 ; RUN:     | llvm-readobj -r - | FileCheck %s -check-prefix CHECK-ITANIUM
4 ; RUN: llc -mtriple thumbv7--windows-msvc -filetype obj -o - %s \
5 ; RUN:    | llvm-readobj -r - | FileCheck %s -check-prefix CHECK-MSVC
7 ; ModuleID = '/Users/compnerd/work/llvm/test/MC/ARM/reduced.c'
8 target datalayout = "e-m:e-p:32:32-i1:8:32-i8:8:32-i16:16:32-i64:64-v128:64:128-a:0:32-n32-S64"
9 target triple = "thumbv7--windows-itanium"
11 define arm_aapcs_vfpcc void @function() {
12 entry:
13   ret void, !dbg !0
14 }
16 !llvm.dbg.cu = !{!7}
17 !llvm.module.flags = !{!9, !10}
19 !0 = !MDLocation(line: 1, scope: !1)
20 !1 = !{!"0x2e\00function\00function\00\001\000\001\000\006\000\000\001", !2, !3, !4, null, void ()* @function, null, null, !6} ; [ DW_TAG_subprogram ], [line 1], [def], [function]
21 !2 = !{!"/Users/compnerd/work/llvm/test/MC/ARM/reduced.c", !"/Users/compnerd/work/llvm"}
22 !3 = !{!"0x29", !2} ; [ DW_TAG_file_type] [/Users/compnerd/work/llvm/test/MC/ARM/reduced.c]
23 !4 = !{!"0x15\00\000\000\000\000\000\000", i32 0, null, null, !5, null, null, null} ; [ DW_TAG_subroutine_type ], [line 0, size 0, align 0, offset 0] [from ]
24 !5 = !{null}
25 !6 = !{}
26 !7 = !{!"0x11\0012\00clang version 3.5.0\000\00\000\00\001", !2, !6, !6, !8, !6, !6} ; [ DW_TAG_compile_unit ] [/Users/compnerd/work/llvm/test/MC/ARM/reduced.c] [DW_LANG_C99]
27 !8 = !{!1}
28 !9 = !{i32 2, !"Dwarf Version", i32 4}
29 !10 = !{i32 1, !"Debug Info Version", i32 2}
31 ; CHECK-ITANIUM: Relocations [
32 ; CHECK-ITANIUM:   Section {{.*}} .debug_info {
33 ; CHECK-ITANIUM:     0x6 IMAGE_REL_ARM_SECREL .debug_abbrev
34 ; CHECK-ITANIUM:     0xC IMAGE_REL_ARM_SECREL .debug_str
35 ; CHECK-ITANIUM:     0x12 IMAGE_REL_ARM_SECREL .debug_str
36 ; CHECK-ITANIUM:     0x16 IMAGE_REL_ARM_SECREL .debug_line
37 ; CHECK-ITANIUM:   }
38 ; CHECK-ITANIUM:   Section {{.*}}.debug_pubnames {
39 ; CHECK-ITANIUM:     0x6 IMAGE_REL_ARM_SECREL .debug_info
40 ; CHECK-ITANIUM:   }
41 ; CHECK-ITANIUM: ]
43 ; CHECK-MSVC: Relocations [
44 ; CHECK-MSVC:   Section {{.*}} .debug$S {
45 ; CHECK-MSVC:     0x2C IMAGE_REL_ARM_SECREL function
46 ; CHECK-MSVC:     0x30 IMAGE_REL_ARM_SECTION function
47 ; CHECK-MSVC:     0x48 IMAGE_REL_ARM_SECREL function
48 ; CHECK-MSVC:     0x4C IMAGE_REL_ARM_SECTION function
49 ; CHECK-MSVC:   }
50 ; CHECK-MSVC: ]