From dfa3ead01ebf9ca0dc8c0c9c0694d187b227f269 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sat, 13 Feb 2021 20:41:38 -0800 Subject: [PATCH] [Analysis] Drop unnecessary const from return types (NFC) Identified with readability-const-return-type. --- llvm/include/llvm/Analysis/DDG.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/llvm/include/llvm/Analysis/DDG.h b/llvm/include/llvm/Analysis/DDG.h index 5317b6e..51dd4a7 100644 --- a/llvm/include/llvm/Analysis/DDG.h +++ b/llvm/include/llvm/Analysis/DDG.h @@ -293,8 +293,8 @@ public: /// Return a string representing the type of dependence that the dependence /// analysis identified between the two given nodes. This function assumes /// that there is a memory dependence between the given two nodes. - const std::string getDependenceString(const NodeType &Src, - const NodeType &Dst) const; + std::string getDependenceString(const NodeType &Src, + const NodeType &Dst) const; protected: // Name of the graph. @@ -470,7 +470,7 @@ bool DependenceGraphInfo::getDependencies( } template -const std::string +std::string DependenceGraphInfo::getDependenceString(const NodeType &Src, const NodeType &Dst) const { std::string Str; -- 2.7.4