31 lines · plain
1; RUN: llc -mtriple armv7-apple-darwin < %s | FileCheck %s2 3; Test that we don't pollute the start of the file with debug sections.4; This is particularly important on ARM MachO as a change in section order can5; cause a change the relaxation of the instructions used.6 7; CHECK: .syntax unified8; CHECK-NEXT: .section __TEXT,__text,regular,pure_instructions9; CHECK-NEXT: .globl _f10; CHECK-NEXT: .p2align 211; CHECK-NEXT: .code 3212; CHECK-NEXT: _f: @ @f13 14; CHECK: .section __DWARF,__debug_str,regular,debug15 16define void @f() !dbg !4 {17 ret void, !dbg !918}19!llvm.dbg.cu = !{!0}20!llvm.module.flags = !{!7, !8}21 22!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "foo", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, retainedTypes: !2, globals: !2, imports: !2)23!1 = !DIFile(filename: "/foo/test.c", directory: "/foo")24!2 = !{}25!4 = distinct !DISubprogram(name: "f", scope: !1, file: !1, line: 2, type: !5, isLocal: false, isDefinition: true, scopeLine: 1, flags: DIFlagPrototyped, isOptimized: true, unit: !0, retainedNodes: !2)26!5 = !DISubroutineType(types: !6)27!6 = !{null}28!7 = !{i32 2, !"Dwarf Version", i32 4}29!8 = !{i32 2, !"Debug Info Version", i32 3}30!9 = !DILocation(line: 1, column: 15, scope: !4)31