Revert "[FunctionAttrs] Identify norecurse functions"
[oota-llvm.git] / test / Transforms / SampleProfile / coverage-warning.ll
index 472836805c1d7cc040764870fae4bad3a01b8146..7407bef9e9da38946b18e0c205315361b56ea7b4 100644 (file)
@@ -1,9 +1,9 @@
 ; RUN: opt < %s -sample-profile -sample-profile-file=%S/Inputs/coverage-warning.prof -sample-profile-check-coverage=90 2>& 1 | FileCheck %s
-define i32 @foo(i32 %i) {
+define i32 @foo(i32 %i) !dbg !4 {
 ; The profile has samples for line locations that are no longer present.
 ; Coverage does not reach 90%, so we should get this warning:
 ;
-; CHECK: warning: {{.*}}:1: 2 of 3 available profile records (66%) were applied
+; CHECK: warning: coverage-warning.c:1: 2 of 3 available profile records (66%) were applied
 entry:
   %retval = alloca i32, align 4
   %i.addr = alloca i32, align 4
@@ -33,7 +33,7 @@ return:                                           ; preds = %if.end, %if.then
 !1 = !DIFile(filename: "coverage-warning.c", directory: ".")
 !2 = !{}
 !3 = !{!4}
-!4 = distinct !DISubprogram(name: "foo", scope: !1, file: !1, line: 1, type: !5, isLocal: false, isDefinition: true, scopeLine: 1, flags: DIFlagPrototyped, isOptimized: false, function: i32 (i32)* @foo, variables: !2)
+!4 = distinct !DISubprogram(name: "foo", scope: !1, file: !1, line: 1, type: !5, isLocal: false, isDefinition: true, scopeLine: 1, flags: DIFlagPrototyped, isOptimized: false, variables: !2)
 !5 = !DISubroutineType(types: !2)
 !6 = !{i32 2, !"Dwarf Version", i32 4}
 !7 = !{i32 2, !"Debug Info Version", i32 3}