1*9880d681SAndroid Build Coastguard Worker; RUN: %llc_dwarf -debugger-tune=lldb -asm-verbose -O1 -o - < %s | FileCheck %s 2*9880d681SAndroid Build Coastguard Worker; RUN: %llc_dwarf -debugger-tune=gdb -asm-verbose -O1 -o - < %s | FileCheck %s --check-prefix=DISABLE 3*9880d681SAndroid Build Coastguard Worker; RUN: %llc_dwarf -disable-fp-elim -debugger-tune=lldb -asm-verbose -O1 -o - < %s | FileCheck %s --check-prefix=DISABLE 4*9880d681SAndroid Build Coastguard Worker 5*9880d681SAndroid Build Coastguard Worker; CHECK: DW_AT_APPLE_omit_frame_ptr 6*9880d681SAndroid Build Coastguard Worker; DISABLE-NOT: DW_AT_APPLE_omit_frame_ptr 7*9880d681SAndroid Build Coastguard Worker 8*9880d681SAndroid Build Coastguard Worker 9*9880d681SAndroid Build Coastguard Workerdefine i32 @foo() nounwind ssp !dbg !1 { 10*9880d681SAndroid Build Coastguard Workerentry: 11*9880d681SAndroid Build Coastguard Worker %retval = alloca i32 ; <i32*> [#uses=2] 12*9880d681SAndroid Build Coastguard Worker %0 = alloca i32 ; <i32*> [#uses=2] 13*9880d681SAndroid Build Coastguard Worker %"alloca point" = bitcast i32 0 to i32 ; <i32> [#uses=0] 14*9880d681SAndroid Build Coastguard Worker store i32 42, i32* %0, align 4, !dbg !0 15*9880d681SAndroid Build Coastguard Worker %1 = load i32, i32* %0, align 4, !dbg !0 ; <i32> [#uses=1] 16*9880d681SAndroid Build Coastguard Worker store i32 %1, i32* %retval, align 4, !dbg !0 17*9880d681SAndroid Build Coastguard Worker br label %return, !dbg !0 18*9880d681SAndroid Build Coastguard Worker 19*9880d681SAndroid Build Coastguard Workerreturn: ; preds = %entry 20*9880d681SAndroid Build Coastguard Worker %retval1 = load i32, i32* %retval, !dbg !0 ; <i32> [#uses=1] 21*9880d681SAndroid Build Coastguard Worker ret i32 %retval1, !dbg !7 22*9880d681SAndroid Build Coastguard Worker} 23*9880d681SAndroid Build Coastguard Worker 24*9880d681SAndroid Build Coastguard Worker!llvm.dbg.cu = !{!3} 25*9880d681SAndroid Build Coastguard Worker!llvm.module.flags = !{!12} 26*9880d681SAndroid Build Coastguard Worker!9 = !{!1} 27*9880d681SAndroid Build Coastguard Worker 28*9880d681SAndroid Build Coastguard Worker!0 = !DILocation(line: 2, scope: !1) 29*9880d681SAndroid Build Coastguard Worker!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) 30*9880d681SAndroid Build Coastguard Worker!2 = !DIFile(filename: "a.c", directory: "/tmp") 31*9880d681SAndroid Build Coastguard Worker!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) 32*9880d681SAndroid Build Coastguard Worker!4 = !DISubroutineType(types: !5) 33*9880d681SAndroid Build Coastguard Worker!5 = !{!6} 34*9880d681SAndroid Build Coastguard Worker!6 = !DIBasicType(tag: DW_TAG_base_type, name: "int", size: 32, align: 32, encoding: DW_ATE_signed) 35*9880d681SAndroid Build Coastguard Worker!7 = !DILocation(line: 2, scope: !8) 36*9880d681SAndroid Build Coastguard Worker!8 = distinct !DILexicalBlock(line: 2, column: 0, file: !10, scope: !1) 37*9880d681SAndroid Build Coastguard Worker!10 = !DIFile(filename: "a.c", directory: "/tmp") 38*9880d681SAndroid Build Coastguard Worker!11 = !{} 39*9880d681SAndroid Build Coastguard Worker!12 = !{i32 1, !"Debug Info Version", i32 3} 40