diff options
author | Dan Gohman <gohman@apple.com> | 2008-05-14 00:42:30 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-05-14 00:42:30 +0000 |
commit | 4e974ab933d37d7af9ae5e016aa111b280bebca2 (patch) | |
tree | ba602e2478df364276256cf1b55e446366cb976b /llvm/lib/System/Unix | |
parent | c92abb44db50b2d6a7d6cccfca41a395470b56e9 (diff) | |
download | bcm5719-llvm-4e974ab933d37d7af9ae5e016aa111b280bebca2.tar.gz bcm5719-llvm-4e974ab933d37d7af9ae5e016aa111b280bebca2.zip |
Make PreVerifyID, IntSigsEnd, and KillSigsEnd const.
llvm-svn: 51088
Diffstat (limited to 'llvm/lib/System/Unix')
-rw-r--r-- | llvm/lib/System/Unix/Signals.inc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/System/Unix/Signals.inc b/llvm/lib/System/Unix/Signals.inc index 79236cdad93..4e0e6d22fd9 100644 --- a/llvm/lib/System/Unix/Signals.inc +++ b/llvm/lib/System/Unix/Signals.inc @@ -41,7 +41,8 @@ static std::vector<sys::Path> *DirectoriesToRemove = 0; static const int IntSigs[] = { SIGHUP, SIGINT, SIGQUIT, SIGPIPE, SIGTERM, SIGUSR1, SIGUSR2 }; -static const int *IntSigsEnd = IntSigs + sizeof(IntSigs) / sizeof(IntSigs[0]); +static const int *const IntSigsEnd = + IntSigs + sizeof(IntSigs) / sizeof(IntSigs[0]); // KillSigs - Signals that are synchronous with the program that will cause it // to die. @@ -51,7 +52,8 @@ static const int KillSigs[] = { , SIGEMT #endif }; -static const int *KillSigsEnd = KillSigs + sizeof(KillSigs) / sizeof(KillSigs[0]); +static const int *const KillSigsEnd = + KillSigs + sizeof(KillSigs) / sizeof(KillSigs[0]); #ifdef HAVE_BACKTRACE static void* StackTrace[256]; |