aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/Unix/Signals.inc
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
commit502b9e1d7f28e95b0970b11eead77f326870cf4e (patch)
tree151b72ce4267078166ae468c77bd7d71d7c434ed /llvm/lib/Support/Unix/Signals.inc
parent5c323b833bd7187eb80e3c0de1c76f6cb45b8ff0 (diff)
downloadllvm-502b9e1d7f28e95b0970b11eead77f326870cf4e.zip
llvm-502b9e1d7f28e95b0970b11eead77f326870cf4e.tar.gz
llvm-502b9e1d7f28e95b0970b11eead77f326870cf4e.tar.bz2
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/Support/Unix/Signals.inc')
-rw-r--r--llvm/lib/Support/Unix/Signals.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Support/Unix/Signals.inc b/llvm/lib/Support/Unix/Signals.inc
index b4c78d6..ef62d52 100644
--- a/llvm/lib/Support/Unix/Signals.inc
+++ b/llvm/lib/Support/Unix/Signals.inc
@@ -55,7 +55,7 @@ static std::vector<std::pair<void(*)(void*), void*> > CallBacksToRun;
static const int IntSigs[] = {
SIGHUP, SIGINT, SIGPIPE, SIGTERM, SIGUSR1, SIGUSR2
};
-static const int *const IntSigsEnd = array_endof(IntSigs);
+static const int *const IntSigsEnd = std::end(IntSigs);
// KillSigs - Signals that represent that we have a bug, and our prompt
// termination has been ordered.
@@ -74,7 +74,7 @@ static const int KillSigs[] = {
, SIGEMT
#endif
};
-static const int *const KillSigsEnd = array_endof(KillSigs);
+static const int *const KillSigsEnd = std::end(KillSigs);
static unsigned NumRegisteredSignals = 0;
static struct {