[Hexagon] Remove ValidArch (NFC)

This function seems to be unused for at least one year.
This commit is contained in:
Kazu Hirata 2021-10-30 08:43:41 -07:00
parent c5cd371cc9
commit c3d63a0697
1 changed files with 0 additions and 6 deletions

View File

@ -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;