aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZequan Wu <zequanwu@google.com>2023-09-15 15:23:00 -0400
committerZequan Wu <zequanwu@google.com>2023-09-15 15:23:17 -0400
commit37402c34918a4627de77c3b20964207892383242 (patch)
tree724371268413055bcc48fb3bd5269b83f7c931b4
parentcf3b12c795eed11894e7a2bad5d6b4600135767c (diff)
downloadllvm-37402c34918a4627de77c3b20964207892383242.zip
llvm-37402c34918a4627de77c3b20964207892383242.tar.gz
llvm-37402c34918a4627de77c3b20964207892383242.tar.bz2
[NFC][Coverage] Rename coverage function attribute name from "Cov Function Name" to "Coverage Function Name"
-rw-r--r--llvm/lib/ProfileData/InstrProfCorrelator.cpp2
-rw-r--r--llvm/test/Instrumentation/InstrProfiling/debug-info-correlate-clang-coverage.ll8
2 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/ProfileData/InstrProfCorrelator.cpp b/llvm/lib/ProfileData/InstrProfCorrelator.cpp
index a31b2d9..5ccfbd2 100644
--- a/llvm/lib/ProfileData/InstrProfCorrelator.cpp
+++ b/llvm/lib/ProfileData/InstrProfCorrelator.cpp
@@ -39,7 +39,7 @@ const char *InstrProfCorrelator::FunctionNameAttributeName = "Function Name";
const char *InstrProfCorrelator::CFGHashAttributeName = "CFG Hash";
const char *InstrProfCorrelator::NumCountersAttributeName = "Num Counters";
const char *InstrProfCorrelator::CovFunctionNameAttributeName =
- "Cov Function Name";
+ "Coverage Function Name";
llvm::Expected<std::unique_ptr<InstrProfCorrelator::Context>>
InstrProfCorrelator::Context::get(std::unique_ptr<MemoryBuffer> Buffer,
diff --git a/llvm/test/Instrumentation/InstrProfiling/debug-info-correlate-clang-coverage.ll b/llvm/test/Instrumentation/InstrProfiling/debug-info-correlate-clang-coverage.ll
index 07af56e..d7c312a 100644
--- a/llvm/test/Instrumentation/InstrProfiling/debug-info-correlate-clang-coverage.ll
+++ b/llvm/test/Instrumentation/InstrProfiling/debug-info-correlate-clang-coverage.ll
@@ -17,8 +17,8 @@
; CHECK-SAME: annotations: ![[ANNOTATIONS:[0-9]+]]
; CHECK: ![[SCOPE]] = {{.*}} !DICompileUnit(
; CHECK: ![[ANNOTATIONS]] = !{![[FUNC_NAME1:[0-9]+]], ![[FUNC_NAME2:[0-9]+]]}
-; CHECK: ![[FUNC_NAME1]] = !{!"Cov Function Name", !"bar"}
-; CHECK: ![[FUNC_NAME2]] = !{!"Cov Function Name", !"baz"}
+; CHECK: ![[FUNC_NAME1]] = !{!"Coverage Function Name", !"bar"}
+; CHECK: ![[FUNC_NAME2]] = !{!"Coverage Function Name", !"baz"}
define void @_Z3foov() !dbg !12 {
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)
; CHECK-DWARF: DW_AT_name ("__llvm_coverage_names")
; CHECK-DWARF: DW_AT_type ({{.*}} "Coverage Type")
; CHECK-DWARF: DW_TAG_LLVM_annotation
-; CHECK-DWARF: DW_AT_name ("Cov Function Name")
+; CHECK-DWARF: DW_AT_name ("Coverage Function Name")
; CHECK-DWARF: DW_AT_const_value ("bar")
; CHECK-DWARF: DW_TAG_LLVM_annotation
-; CHECK-DWARF: DW_AT_name ("Cov Function Name")
+; CHECK-DWARF: DW_AT_name ("Coverage Function Name")
; CHECK-DWARF: DW_AT_const_value ("baz")
; CHECK-DWARF: DW_TAG_unspecified_type
; CHECK-DWARF: DW_AT_name ("Coverage Type")