[llvm] d12a0f4 - [GCOV] Drop unnecessary const from return types (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 10 20:01:47 PST 2021
Author: Kazu Hirata
Date: 2021-02-10T20:01:18-08:00
New Revision: d12a0f4fc0b518267ecbdfac37481795957f33be
URL: https://github.com/llvm/llvm-project/commit/d12a0f4fc0b518267ecbdfac37481795957f33be
DIFF: https://github.com/llvm/llvm-project/commit/d12a0f4fc0b518267ecbdfac37481795957f33be.diff
LOG: [GCOV] Drop unnecessary const from return types (NFC)
Identified with readability-const-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 527644a69d91..bc1068f3a530 100644
--- a/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp
+++ b/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp
@@ -207,7 +207,7 @@ struct BBInfo {
uint32_t Rank = 0;
BBInfo(unsigned Index) : Group(this), Index(Index) {}
- const std::string infoString() const {
+ std::string infoString() const {
return (Twine("Index=") + Twine(Index)).str();
}
};
@@ -228,7 +228,7 @@ struct Edge {
: SrcBB(Src), DestBB(Dest), Weight(W) {}
// Return the information string of an edge.
- const std::string infoString() const {
+ std::string infoString() const {
return (Twine(Removed ? "-" : " ") + (InMST ? " " : "*") +
(IsCritical ? "c" : " ") + " W=" + Twine(Weight))
.str();
More information about the llvm-commits
mailing list