Skip to content

Commit 3c99157

Browse files
ZequanWuzahiraam
authored andcommitted
[NFC][Coverage] Rename coverage function attribute name from "Cov Function Name" to "Coverage Function Name"
1 parent e9ccac1 commit 3c99157

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

llvm/lib/ProfileData/InstrProfCorrelator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const char *InstrProfCorrelator::FunctionNameAttributeName = "Function Name";
3939
const char *InstrProfCorrelator::CFGHashAttributeName = "CFG Hash";
4040
const char *InstrProfCorrelator::NumCountersAttributeName = "Num Counters";
4141
const char *InstrProfCorrelator::CovFunctionNameAttributeName =
42-
"Cov Function Name";
42+
"Coverage Function Name";
4343

4444
llvm::Expected<std::unique_ptr<InstrProfCorrelator::Context>>
4545
InstrProfCorrelator::Context::get(std::unique_ptr<MemoryBuffer> Buffer,

llvm/test/Instrumentation/InstrProfiling/debug-info-correlate-clang-coverage.ll

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
; CHECK-SAME: annotations: ![[ANNOTATIONS:[0-9]+]]
1818
; CHECK: ![[SCOPE]] = {{.*}} !DICompileUnit(
1919
; CHECK: ![[ANNOTATIONS]] = !{![[FUNC_NAME1:[0-9]+]], ![[FUNC_NAME2:[0-9]+]]}
20-
; CHECK: ![[FUNC_NAME1]] = !{!"Cov Function Name", !"bar"}
21-
; CHECK: ![[FUNC_NAME2]] = !{!"Cov Function Name", !"baz"}
20+
; CHECK: ![[FUNC_NAME1]] = !{!"Coverage Function Name", !"bar"}
21+
; CHECK: ![[FUNC_NAME2]] = !{!"Coverage Function Name", !"baz"}
2222

2323
define void @_Z3foov() !dbg !12 {
2424
call void @llvm.instrprof.increment(ptr @__profn_foo, i64 12345678, i32 2, i32 0)
@@ -54,10 +54,10 @@ declare void @llvm.instrprof.increment(ptr, i64, i32, i32)
5454
; CHECK-DWARF: DW_AT_name ("__llvm_coverage_names")
5555
; CHECK-DWARF: DW_AT_type ({{.*}} "Coverage Type")
5656
; CHECK-DWARF: DW_TAG_LLVM_annotation
57-
; CHECK-DWARF: DW_AT_name ("Cov Function Name")
57+
; CHECK-DWARF: DW_AT_name ("Coverage Function Name")
5858
; CHECK-DWARF: DW_AT_const_value ("bar")
5959
; CHECK-DWARF: DW_TAG_LLVM_annotation
60-
; CHECK-DWARF: DW_AT_name ("Cov Function Name")
60+
; CHECK-DWARF: DW_AT_name ("Coverage Function Name")
6161
; CHECK-DWARF: DW_AT_const_value ("baz")
6262
; CHECK-DWARF: DW_TAG_unspecified_type
6363
; CHECK-DWARF: DW_AT_name ("Coverage Type")

0 commit comments

Comments
 (0)