[llvm] 5d7d8d6 - [Instrumentation] Drop "const" from a return type (NFC) (#145208)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 22 06:30:06 PDT 2025
Author: Kazu Hirata
Date: 2025-06-22T06:30:02-07:00
New Revision: 5d7d8d627a418fda2706c4880389711e12d43aea
URL: https://github.com/llvm/llvm-project/commit/5d7d8d627a418fda2706c4880389711e12d43aea
DIFF: https://github.com/llvm/llvm-project/commit/5d7d8d627a418fda2706c4880389711e12d43aea.diff
LOG: [Instrumentation] Drop "const" from a return type (NFC) (#145208)
We don't need to put a const on a return type.
Added:
Modified:
llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp b/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp
index 4c7b8c69c1bf3..71ab61253e643 100644
--- a/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp
+++ b/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp
@@ -245,7 +245,7 @@ namespace {
// to the block.
class GCOVLines : public GCOVRecord {
public:
- const StringRef getFilename() { return Filename; }
+ StringRef getFilename() { return Filename; }
void addLine(uint32_t Line) {
assert(Line != 0 && "Line zero is not a valid real line number.");
More information about the llvm-commits
mailing list