[llvm] c18231e - [CodeGen] Drop unnecessary const from return types (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 2 22:53:09 PST 2021
Author: Kazu Hirata
Date: 2021-02-02T22:52:45-08:00
New Revision: c18231e3dda0c7bd82f3e8bbdc5d55d6ddf767ed
URL: https://github.com/llvm/llvm-project/commit/c18231e3dda0c7bd82f3e8bbdc5d55d6ddf767ed
DIFF: https://github.com/llvm/llvm-project/commit/c18231e3dda0c7bd82f3e8bbdc5d55d6ddf767ed.diff
LOG: [CodeGen] Drop unnecessary const from return types (NFC)
Identified with const-return-type.
Added:
Modified:
llvm/include/llvm/CodeGen/SelectionDAG.h
llvm/include/llvm/CodeGen/SelectionDAGNodes.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/CodeGen/SelectionDAG.h b/llvm/include/llvm/CodeGen/SelectionDAG.h
index aeb488dd6c83..46d01fb127eb 100644
--- a/llvm/include/llvm/CodeGen/SelectionDAG.h
+++ b/llvm/include/llvm/CodeGen/SelectionDAG.h
@@ -351,7 +351,7 @@ class SelectionDAG {
FlagInserter &operator=(const FlagInserter &) = delete;
~FlagInserter() { DAG.setFlagInserter(LastInserter); }
- const SDNodeFlags getFlags() const { return Flags; }
+ SDNodeFlags getFlags() const { return Flags; }
};
/// When true, additional steps are taken to
diff --git a/llvm/include/llvm/CodeGen/SelectionDAGNodes.h b/llvm/include/llvm/CodeGen/SelectionDAGNodes.h
index 000e383b71eb..7adbc5d1fe85 100644
--- a/llvm/include/llvm/CodeGen/SelectionDAGNodes.h
+++ b/llvm/include/llvm/CodeGen/SelectionDAGNodes.h
@@ -944,7 +944,7 @@ END_TWO_BYTE_PACK()
return nullptr;
}
- const SDNodeFlags getFlags() const { return Flags; }
+ SDNodeFlags getFlags() const { return Flags; }
void setFlags(SDNodeFlags NewFlags) { Flags = NewFlags; }
/// Clear any flags in this node that aren't also set in Flags.
More information about the llvm-commits
mailing list