[llvm] 7b9f6c2 - [SelectionDAG] Drop unnecessary const from a return type (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sun Feb 7 09:50:07 PST 2021
Author: Kazu Hirata
Date: 2021-02-07T09:49:33-08:00
New Revision: 7b9f6c2d4283fa378fee0a30d6dcfbb46fd63a07
URL: https://github.com/llvm/llvm-project/commit/7b9f6c2d4283fa378fee0a30d6dcfbb46fd63a07
DIFF: https://github.com/llvm/llvm-project/commit/7b9f6c2d4283fa378fee0a30d6dcfbb46fd63a07.diff
LOG: [SelectionDAG] Drop unnecessary const from a return type (NFC)
Identified with const-return-type.
Added:
Modified:
llvm/include/llvm/CodeGen/SelectionDAG.h
llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
Removed:
################################################################################
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 @@ class SelectionDAG {
/// 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 SDNode *, std::string>::const_iterator I =
NodeGraphAttrs.find(N);
More information about the llvm-commits
mailing list