[llvm] 37402c3 - [NFC][Coverage] Rename coverage function attribute name from "Cov Function Name" to "Coverage Function Name"

Zequan Wu via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 15 12:23:27 PDT 2023


Author: Zequan Wu
Date: 2023-09-15T15:23:17-04:00
New Revision: 37402c34918a4627de77c3b20964207892383242

URL: https://github.com/llvm/llvm-project/commit/37402c34918a4627de77c3b20964207892383242
DIFF: https://github.com/llvm/llvm-project/commit/37402c34918a4627de77c3b20964207892383242.diff

LOG: [NFC][Coverage] Rename coverage function attribute name from "Cov Function Name" to "Coverage Function Name"

Added: 
    

Modified: 
    llvm/lib/ProfileData/InstrProfCorrelator.cpp
    llvm/test/Instrumentation/InstrProfiling/debug-info-correlate-clang-coverage.ll

Removed: 
    


################################################################################
diff  --git a/llvm/lib/ProfileData/InstrProfCorrelator.cpp b/llvm/lib/ProfileData/InstrProfCorrelator.cpp
index a31b2d9cbfca1a1..5ccfbd2ed9749bd 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 07af56e2c1bdde5..d7c312a45ba7a78 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")


        


More information about the llvm-commits mailing list