1; XFAIL: target={{.*}}-aix{{.*}} 2; RUN: %llc_dwarf -debugger-tune=lldb -asm-verbose -O1 -o - < %s | FileCheck %s 3; RUN: %llc_dwarf -debugger-tune=gdb -asm-verbose -O1 -o - < %s | FileCheck %s --check-prefix=DISABLE 4; RUN: %llc_dwarf -frame-pointer=all -debugger-tune=lldb -asm-verbose -O1 -o - < %s | FileCheck %s --check-prefix=DISABLE 5 6; CHECK: DW_AT_APPLE_omit_frame_ptr 7; DISABLE-NOT: DW_AT_APPLE_omit_frame_ptr 8 9 10define i32 @foo() nounwind ssp !dbg !1 { 11entry: 12 %retval = alloca i32 ; <ptr> [#uses=2] 13 %0 = alloca i32 ; <ptr> [#uses=2] 14 %"alloca point" = bitcast i32 0 to i32 ; <i32> [#uses=0] 15 store i32 42, ptr %0, align 4, !dbg !0 16 %1 = load i32, ptr %0, align 4, !dbg !0 ; <i32> [#uses=1] 17 store i32 %1, ptr %retval, align 4, !dbg !0 18 br label %return, !dbg !0 19 20return: ; preds = %entry 21 %retval1 = load i32, ptr %retval, !dbg !0 ; <i32> [#uses=1] 22 ret i32 %retval1, !dbg !7 23} 24 25!llvm.dbg.cu = !{!3} 26!llvm.module.flags = !{!12} 27!9 = !{!1} 28 29!0 = !DILocation(line: 2, scope: !1) 30!1 = distinct !DISubprogram(name: "foo", linkageName: "foo", line: 2, isLocal: false, isDefinition: true, virtualIndex: 6, isOptimized: false, unit: !3, scopeLine: 2, file: !10, scope: null, type: !4) 31!2 = !DIFile(filename: "a.c", directory: "/tmp") 32!3 = distinct !DICompileUnit(language: DW_LANG_C89, producer: "4.2.1 (Based on Apple Inc. build 5658) (LLVM build)", isOptimized: false, emissionKind: FullDebug, file: !10, enums: !11, retainedTypes: !11, imports: null) 33!4 = !DISubroutineType(types: !5) 34!5 = !{!6} 35!6 = !DIBasicType(tag: DW_TAG_base_type, name: "int", size: 32, align: 32, encoding: DW_ATE_signed) 36!7 = !DILocation(line: 2, scope: !8) 37!8 = distinct !DILexicalBlock(line: 2, column: 0, file: !10, scope: !1) 38!10 = !DIFile(filename: "a.c", directory: "/tmp") 39!11 = !{} 40!12 = !{i32 1, !"Debug Info Version", i32 3} 41