[llvm] c3d63a0 - [Hexagon] Remove ValidArch (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sat Oct 30 08:43:59 PDT 2021
Author: Kazu Hirata
Date: 2021-10-30T08:43:41-07:00
New Revision: c3d63a0697fd1b7ebb5ecebc5e9a84d3f2fd1de5
URL: https://github.com/llvm/llvm-project/commit/c3d63a0697fd1b7ebb5ecebc5e9a84d3f2fd1de5
DIFF: https://github.com/llvm/llvm-project/commit/c3d63a0697fd1b7ebb5ecebc5e9a84d3f2fd1de5.diff
LOG: [Hexagon] Remove ValidArch (NFC)
This function seems to be unused for at least one year.
Added:
Modified:
llvm/lib/Target/Hexagon/HexagonArch.h
Removed:
################################################################################
diff --git a/llvm/lib/Target/Hexagon/HexagonArch.h b/llvm/lib/Target/Hexagon/HexagonArch.h
index e5d528390c51..4a42ec98feb1 100644
--- a/llvm/lib/Target/Hexagon/HexagonArch.h
+++ b/llvm/lib/Target/Hexagon/HexagonArch.h
@@ -18,12 +18,6 @@
namespace llvm {
namespace Hexagon {
-template <class ArchCont, typename Val>
-bool ValidArch(ArchCont const &ArchList, Val HexArch) {
- return std::any_of(std::begin(ArchList), std::end(ArchList),
- [HexArch](Val V) { return V == HexArch; });
-}
-
template <class ArchCont, typename Val>
llvm::Optional<ArchEnum> GetCpu(ArchCont const &ArchList, Val CPUString) {
llvm::Optional<ArchEnum> Res;
More information about the llvm-commits
mailing list