projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5cd371
)
[Hexagon] Remove ValidArch (NFC)
author
Kazu Hirata
<kazu@google.com>
Sat, 30 Oct 2021 15:43:41 +0000
(08:43 -0700)
committer
Kazu Hirata
<kazu@google.com>
Sat, 30 Oct 2021 15:43:41 +0000
(08:43 -0700)
This function seems to be unused for at least one year.
llvm/lib/Target/Hexagon/HexagonArch.h
patch
|
blob
|
history
diff --git
a/llvm/lib/Target/Hexagon/HexagonArch.h
b/llvm/lib/Target/Hexagon/HexagonArch.h
index
e5d5283
..
4a42ec9
100644
(file)
--- a/
llvm/lib/Target/Hexagon/HexagonArch.h
+++ b/
llvm/lib/Target/Hexagon/HexagonArch.h
@@
-19,12
+19,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;
auto Entry = ArchList.find(CPUString);