• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc -mtriple=armv7-none-linux-gnueabihf < %s -o - | FileCheck %s
2
3; Function Attrs: nounwind
4define void @need_cfi_def_cfa_offset() #0 !dbg !3 {
5; CHECK-LABEL: need_cfi_def_cfa_offset:
6; CHECK: sub	sp, sp, #4
7; CHECK: .cfi_def_cfa_offset 4
8entry:
9  %Depth = alloca i32, align 4
10  call void @llvm.dbg.declare(metadata i32* %Depth, metadata !9, metadata !10), !dbg !11
11  store i32 2, i32* %Depth, align 4, !dbg !11
12  ret void, !dbg !12
13}
14
15; Function Attrs: nounwind readnone
16declare void @llvm.dbg.declare(metadata, metadata, metadata) #1
17
18attributes #0 = { nounwind }
19attributes #1 = { nounwind readnone }
20
21!llvm.dbg.cu = !{!0}
22!llvm.module.flags = !{!7, !8}
23
24!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "", isOptimized: false, emissionKind: FullDebug)
25!1 = !DIFile(filename: "file.c", directory: "/dir")
26!2 = !{}
27!3 = distinct !DISubprogram(name: "need_cfi_def_cfa_offset", scope: !1, file: !1, line: 1, type: !4, isLocal: false, isDefinition: true, scopeLine: 2, isOptimized: false, unit: !0, variables: !2)
28!4 = !DISubroutineType(types: !5)
29!5 = !{null}
30!6 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed)
31!7 = !{i32 2, !"Dwarf Version", i32 4}
32!8 = !{i32 2, !"Debug Info Version", i32 3}
33!9 = !DILocalVariable(name: "Depth", scope: !3, file: !1, line: 3, type: !6)
34!10 = !DIExpression()
35!11 = !DILocation(line: 3, column: 9, scope: !3)
36!12 = !DILocation(line: 7, column: 5, scope: !3)
37