From 37402c34918a4627de77c3b20964207892383242 Mon Sep 17 00:00:00 2001 From: Zequan Wu Date: Fri, 15 Sep 2023 15:23:00 -0400 Subject: [NFC][Coverage] Rename coverage function attribute name from "Cov Function Name" to "Coverage Function Name" --- llvm/lib/ProfileData/InstrProfCorrelator.cpp | 2 +- .../InstrProfiling/debug-info-correlate-clang-coverage.ll | 8 ++++---- 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> InstrProfCorrelator::Context::get(std::unique_ptr 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") -- cgit v1.1