1*9880d681SAndroid Build Coastguard Worker; RUN: %llc_dwarf -O0 < %s | FileCheck %s -check-prefix ARGUMENT 2*9880d681SAndroid Build Coastguard Worker; RUN: %llc_dwarf -O0 < %s | FileCheck %s -check-prefix VARIABLE 3*9880d681SAndroid Build Coastguard Worker; PR 13202 4*9880d681SAndroid Build Coastguard Worker 5*9880d681SAndroid Build Coastguard Workerdefine i32 @main() uwtable !dbg !5 { 6*9880d681SAndroid Build Coastguard Workerentry: 7*9880d681SAndroid Build Coastguard Worker tail call void @llvm.dbg.value(metadata i32 0, i64 0, metadata !18, metadata !DIExpression()), !dbg !21 8*9880d681SAndroid Build Coastguard Worker tail call void @llvm.dbg.value(metadata i32 0, i64 0, metadata !22, metadata !DIExpression()), !dbg !23 9*9880d681SAndroid Build Coastguard Worker tail call void @smth(i32 0), !dbg !24 10*9880d681SAndroid Build Coastguard Worker tail call void @smth(i32 0), !dbg !25 11*9880d681SAndroid Build Coastguard Worker ret i32 0, !dbg !19 12*9880d681SAndroid Build Coastguard Worker} 13*9880d681SAndroid Build Coastguard Worker 14*9880d681SAndroid Build Coastguard Workerdeclare void @smth(i32) 15*9880d681SAndroid Build Coastguard Worker 16*9880d681SAndroid Build Coastguard Workerdeclare void @llvm.dbg.value(metadata, i64, metadata, metadata) nounwind readnone 17*9880d681SAndroid Build Coastguard Worker 18*9880d681SAndroid Build Coastguard Worker!llvm.dbg.cu = !{!0} 19*9880d681SAndroid Build Coastguard Worker!llvm.module.flags = !{!27} 20*9880d681SAndroid Build Coastguard Worker 21*9880d681SAndroid Build Coastguard Worker!0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, producer: "clang version 3.2 (trunk 159419)", isOptimized: true, emissionKind: FullDebug, file: !26, enums: !2, retainedTypes: !2, globals: !2, imports: !2) 22*9880d681SAndroid Build Coastguard Worker!1 = !{i32 0} 23*9880d681SAndroid Build Coastguard Worker!2 = !{} 24*9880d681SAndroid Build Coastguard Worker!5 = distinct !DISubprogram(name: "main", line: 10, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: true, unit: !0, scopeLine: 10, file: !26, scope: !6, type: !7, variables: !2) 25*9880d681SAndroid Build Coastguard Worker!6 = !DIFile(filename: "inline-bug.cc", directory: "/tmp/dbginfo/pr13202") 26*9880d681SAndroid Build Coastguard Worker!7 = !DISubroutineType(types: !8) 27*9880d681SAndroid Build Coastguard Worker!8 = !{!9} 28*9880d681SAndroid Build Coastguard Worker!9 = !DIBasicType(tag: DW_TAG_base_type, name: "int", size: 32, align: 32, encoding: DW_ATE_signed) 29*9880d681SAndroid Build Coastguard Worker!10 = distinct !DISubprogram(name: "f", linkageName: "_ZL1fi", line: 3, isLocal: true, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: true, unit: !0, scopeLine: 3, file: !26, scope: !6, type: !11, variables: !13) 30*9880d681SAndroid Build Coastguard Worker!11 = !DISubroutineType(types: !12) 31*9880d681SAndroid Build Coastguard Worker!12 = !{!9, !9} 32*9880d681SAndroid Build Coastguard Worker!13 = !{!15, !16} 33*9880d681SAndroid Build Coastguard Worker!15 = !DILocalVariable(name: "argument", line: 3, arg: 1, scope: !10, file: !6, type: !9) 34*9880d681SAndroid Build Coastguard Worker 35*9880d681SAndroid Build Coastguard Worker; Two DW_TAG_formal_parameter: one abstract and one inlined. 36*9880d681SAndroid Build Coastguard Worker; ARGUMENT: {{.*Abbrev.*DW_TAG_formal_parameter}} 37*9880d681SAndroid Build Coastguard Worker; ARGUMENT: {{.*Abbrev.*DW_TAG_formal_parameter}} 38*9880d681SAndroid Build Coastguard Worker; ARGUMENT-NOT: {{.*Abbrev.*DW_TAG_formal_parameter}} 39*9880d681SAndroid Build Coastguard Worker 40*9880d681SAndroid Build Coastguard Worker!16 = !DILocalVariable(name: "local", line: 4, scope: !10, file: !6, type: !9) 41*9880d681SAndroid Build Coastguard Worker 42*9880d681SAndroid Build Coastguard Worker; Two DW_TAG_variable: one abstract and one inlined. 43*9880d681SAndroid Build Coastguard Worker; VARIABLE: {{.*Abbrev.*DW_TAG_variable}} 44*9880d681SAndroid Build Coastguard Worker; VARIABLE: {{.*Abbrev.*DW_TAG_variable}} 45*9880d681SAndroid Build Coastguard Worker; VARIABLE-NOT: {{.*Abbrev.*DW_TAG_variable}} 46*9880d681SAndroid Build Coastguard Worker 47*9880d681SAndroid Build Coastguard Worker!18 = !DILocalVariable(name: "argument", line: 3, arg: 1, scope: !10, file: !6, type: !9) 48*9880d681SAndroid Build Coastguard Worker!19 = !DILocation(line: 11, column: 10, scope: !5) 49*9880d681SAndroid Build Coastguard Worker!21 = !DILocation(line: 3, column: 25, scope: !10, inlinedAt: !19) 50*9880d681SAndroid Build Coastguard Worker!22 = !DILocalVariable(name: "local", line: 4, scope: !10, file: !6, type: !9) 51*9880d681SAndroid Build Coastguard Worker!23 = !DILocation(line: 4, column: 16, scope: !10, inlinedAt: !19) 52*9880d681SAndroid Build Coastguard Worker!24 = !DILocation(line: 5, column: 3, scope: !10, inlinedAt: !19) 53*9880d681SAndroid Build Coastguard Worker!25 = !DILocation(line: 6, column: 3, scope: !10, inlinedAt: !19) 54*9880d681SAndroid Build Coastguard Worker!26 = !DIFile(filename: "inline-bug.cc", directory: "/tmp/dbginfo/pr13202") 55*9880d681SAndroid Build Coastguard Worker!27 = !{i32 1, !"Debug Info Version", i32 3} 56