1*9880d681SAndroid Build Coastguard Worker; RUN: opt -strip-debug < %s -S | FileCheck %s 2*9880d681SAndroid Build Coastguard Worker 3*9880d681SAndroid Build Coastguard Worker; CHECK-NOT: call void @llvm.dbg.value 4*9880d681SAndroid Build Coastguard Worker 5*9880d681SAndroid Build Coastguard Worker@x = common global i32 0 ; <i32*> [#uses=0] 6*9880d681SAndroid Build Coastguard Worker 7*9880d681SAndroid Build Coastguard Workerdefine void @foo() nounwind readnone optsize ssp !dbg !0 { 8*9880d681SAndroid Build Coastguard Workerentry: 9*9880d681SAndroid Build Coastguard Worker tail call void @llvm.dbg.value(metadata i32 0, i64 0, metadata !5, metadata !{}), !dbg !10 10*9880d681SAndroid Build Coastguard Worker ret void, !dbg !11 11*9880d681SAndroid Build Coastguard Worker} 12*9880d681SAndroid Build Coastguard Worker 13*9880d681SAndroid Build Coastguard Workerdeclare void @llvm.dbg.value(metadata, i64, metadata, metadata) nounwind readnone 14*9880d681SAndroid Build Coastguard Worker 15*9880d681SAndroid Build Coastguard Worker!llvm.module.flags = !{!13} 16*9880d681SAndroid Build Coastguard Worker!llvm.dbg.cu = !{!2} 17*9880d681SAndroid Build Coastguard Worker 18*9880d681SAndroid Build Coastguard Worker!0 = distinct !DISubprogram(name: "foo", linkageName: "foo", line: 2, isLocal: false, isDefinition: true, virtualIndex: 6, isOptimized: true, unit: !2, file: !12, scope: !1, type: !3) 19*9880d681SAndroid Build Coastguard Worker!1 = !DIFile(filename: "b.c", directory: "/tmp") 20*9880d681SAndroid Build Coastguard Worker!2 = distinct !DICompileUnit(language: DW_LANG_C89, producer: "4.2.1 (Based on Apple Inc. build 5658) (LLVM build)", isOptimized: true, emissionKind: FullDebug, file: !12, globals: !{!8}) 21*9880d681SAndroid Build Coastguard Worker!3 = !DISubroutineType(types: !4) 22*9880d681SAndroid Build Coastguard Worker!4 = !{null} 23*9880d681SAndroid Build Coastguard Worker!5 = !DILocalVariable(name: "y", line: 3, scope: !6, file: !1, type: !7) 24*9880d681SAndroid Build Coastguard Worker!6 = distinct !DILexicalBlock(line: 2, column: 0, file: !12, scope: !0) 25*9880d681SAndroid Build Coastguard Worker!7 = !DIBasicType(tag: DW_TAG_base_type, name: "int", size: 32, align: 32, encoding: DW_ATE_signed) 26*9880d681SAndroid Build Coastguard Worker!8 = !DIGlobalVariable(name: "x", line: 1, isLocal: false, isDefinition: true, scope: !1, file: !1, type: !7, variable: i32* @x) 27*9880d681SAndroid Build Coastguard Worker!9 = !{i32 0} 28*9880d681SAndroid Build Coastguard Worker!10 = !DILocation(line: 3, scope: !6) 29*9880d681SAndroid Build Coastguard Worker!11 = !DILocation(line: 4, scope: !6) 30*9880d681SAndroid Build Coastguard Worker!12 = !DIFile(filename: "b.c", directory: "/tmp") 31*9880d681SAndroid Build Coastguard Worker!13 = !{i32 1, !"Debug Info Version", i32 3} 32