summaryrefslogtreecommitdiff
path: root/lib/Target/Mips/Mips16HardFloat.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2014-04-12 16:15:53 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2014-04-12 16:15:53 +0000
commit15c435a367a80c53c00041e09d997bee4a677e5b (patch)
treee8d3a3b022a3df02b47c12fca4a7d264143c6c7f /lib/Target/Mips/Mips16HardFloat.cpp
parent479151ab7f8a833569701cbd883a4465eeaad33a (diff)
downloadllvm-15c435a367a80c53c00041e09d997bee4a677e5b.tar.gz
llvm-15c435a367a80c53c00041e09d997bee4a677e5b.tar.bz2
llvm-15c435a367a80c53c00041e09d997bee4a677e5b.tar.xz
Retire llvm::array_endof in favor of non-member std::end.
While there make array_lengthof constexpr if we have support for it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206112 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/Mips16HardFloat.cpp')
-rw-r--r--lib/Target/Mips/Mips16HardFloat.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Target/Mips/Mips16HardFloat.cpp b/lib/Target/Mips/Mips16HardFloat.cpp
index d321e2192a..c4fca2742e 100644
--- a/lib/Target/Mips/Mips16HardFloat.cpp
+++ b/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