52 lines · plain
1; RUN: llc -mtriple thumbv7--windows-itanium -filetype obj -o - %s \2; RUN: | llvm-readobj -r - | FileCheck %s -check-prefix CHECK-ITANIUM3 4; RUN: sed -e 's/"Dwarf Version"/"CodeView"/' %s \5; RUN: | llc -mtriple thumbv7--windows-msvc -filetype obj -o - \6; RUN: | llvm-readobj -r - | FileCheck %s -check-prefix CHECK-MSVC7 8; ModuleID = '/Users/compnerd/work/llvm/test/MC/ARM/reduced.c'9target 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"10target triple = "thumbv7--windows-itanium"11 12define arm_aapcs_vfpcc void @function() !dbg !1 {13entry:14 ret void, !dbg !015}16 17!llvm.dbg.cu = !{!7}18!llvm.module.flags = !{!9, !10}19 20!0 = !DILocation(line: 1, scope: !1)21!1 = distinct !DISubprogram(name: "function", line: 1, isLocal: false, isDefinition: true, virtualIndex: 6, isOptimized: false, unit: !7, scopeLine: 1, file: !2, scope: !3, type: !4, retainedNodes: !6)22!2 = !DIFile(filename: "/Users/compnerd/work/llvm/test/MC/ARM/reduced.c", directory: "/Users/compnerd/work/llvm")23!3 = !DIFile(filename: "/Users/compnerd/work/llvm/test/MC/ARM/reduced.c", directory: "/Users/compnerd/work/llvm")24!4 = !DISubroutineType(types: !5)25!5 = !{null}26!6 = !{}27!7 = distinct !DICompileUnit(language: DW_LANG_C99, producer: "clang version 3.5.0", isOptimized: false, emissionKind: FullDebug, file: !2, enums: !6, retainedTypes: !6, globals: !6, imports: !6)28!9 = !{i32 2, !"Dwarf Version", i32 4}29!10 = !{i32 1, !"Debug Info Version", i32 3}30 31; CHECK-ITANIUM: Relocations [32; CHECK-ITANIUM: Section {{.*}} .debug_info {33; CHECK-ITANIUM: 0x6 IMAGE_REL_ARM_SECREL .debug_abbrev34; CHECK-ITANIUM: 0xC IMAGE_REL_ARM_SECREL .debug_str35; CHECK-ITANIUM: 0x12 IMAGE_REL_ARM_SECREL .debug_str36; CHECK-ITANIUM: 0x16 IMAGE_REL_ARM_SECREL .debug_line37; CHECK-ITANIUM: }38; CHECK-ITANIUM: Section {{.*}}.debug_pubnames {39; CHECK-ITANIUM: 0x6 IMAGE_REL_ARM_SECREL .debug_info40; CHECK-ITANIUM: }41; CHECK-ITANIUM: ]42 43; CHECK-MSVC: Relocations [44; CHECK-MSVC: Section {{.*}} .debug$S {45; CHECK-MSVC: 0x70 IMAGE_REL_ARM_SECREL function46; CHECK-MSVC: 0x74 IMAGE_REL_ARM_SECTION function47; CHECK-MSVC: 0xAC IMAGE_REL_ARM_SECREL function48; CHECK-MSVC: 0xB0 IMAGE_REL_ARM_SECTION function49; CHECK-MSVC: }50; CHECK-MSVC: ]51 52