diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2014-04-12 16:15:53 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2014-04-12 16:15:53 +0000 |
commit | 502b9e1d7f28e95b0970b11eead77f326870cf4e (patch) | |
tree | 151b72ce4267078166ae468c77bd7d71d7c434ed /llvm/lib/Target/Mips/Mips16HardFloat.cpp | |
parent | 5c323b833bd7187eb80e3c0de1c76f6cb45b8ff0 (diff) | |
download | bcm5719-llvm-502b9e1d7f28e95b0970b11eead77f326870cf4e.tar.gz bcm5719-llvm-502b9e1d7f28e95b0970b11eead77f326870cf4e.zip |
Retire llvm::array_endof in favor of non-member std::end.
While there make array_lengthof constexpr if we have support for it.
llvm-svn: 206112
Diffstat (limited to 'llvm/lib/Target/Mips/Mips16HardFloat.cpp')
-rw-r--r-- | llvm/lib/Target/Mips/Mips16HardFloat.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Target/Mips/Mips16HardFloat.cpp b/llvm/lib/Target/Mips/Mips16HardFloat.cpp index d321e2192ad..c4fca2742ef 100644 --- a/llvm/lib/Target/Mips/Mips16HardFloat.cpp +++ b/llvm/lib/Target/Mips/Mips16HardFloat.cpp @@ -354,9 +354,8 @@ static const char *IntrinsicInline[] = }; static bool isIntrinsicInline(Function *F) { - return std::binary_search( - IntrinsicInline, array_endof(IntrinsicInline), - F->getName()); + return std::binary_search(std::begin(IntrinsicInline), + std::end(IntrinsicInline), F->getName()); } // // Returns of float, double and complex need to be handled with a helper |