From c3d63a0697fd1b7ebb5ecebc5e9a84d3f2fd1de5 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sat, 30 Oct 2021 08:43:41 -0700 Subject: [PATCH] [Hexagon] Remove ValidArch (NFC) This function seems to be unused for at least one year. --- llvm/lib/Target/Hexagon/HexagonArch.h | 6 ------ 1 file changed, 6 deletions(-) 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 -bool ValidArch(ArchCont const &ArchList, Val HexArch) { - return std::any_of(std::begin(ArchList), std::end(ArchList), - [HexArch](Val V) { return V == HexArch; }); -} - template llvm::Optional GetCpu(ArchCont const &ArchList, Val CPUString) { llvm::Optional Res;