From 7b9f6c2d4283fa378fee0a30d6dcfbb46fd63a07 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 7 Feb 2021 09:49:33 -0800 Subject: [PATCH] [SelectionDAG] Drop unnecessary const from a return type (NFC) Identified with const-return-type. --- llvm/include/llvm/CodeGen/SelectionDAG.h | 2 +- llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/include/llvm/CodeGen/SelectionDAG.h b/llvm/include/llvm/CodeGen/SelectionDAG.h index 46d01fb127eb..5e1d5a7ef315 100644 --- a/llvm/include/llvm/CodeGen/SelectionDAG.h +++ b/llvm/include/llvm/CodeGen/SelectionDAG.h @@ -487,7 +487,7 @@ public: /// Get graph attributes for a node. (eg. "color=red".) /// Used from getNodeAttributes. - const std::string getGraphAttrs(const SDNode *N) const; + std::string getGraphAttrs(const SDNode *N) const; /// Convenience for setting node color attribute. void setGraphColor(const SDNode *N, const char *Color); diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp index 059a6baf967a..d022e2a23ea0 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp @@ -204,7 +204,7 @@ void SelectionDAG::setGraphAttrs(const SDNode *N, const char *Attrs) { /// getGraphAttrs - Get graph attributes for a node. (eg. "color=red".) /// Used from getNodeAttributes. -const std::string SelectionDAG::getGraphAttrs(const SDNode *N) const { +std::string SelectionDAG::getGraphAttrs(const SDNode *N) const { #ifndef NDEBUG std::map::const_iterator I = NodeGraphAttrs.find(N);