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