From 4e974ab933d37d7af9ae5e016aa111b280bebca2 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Wed, 14 May 2008 00:42:30 +0000 Subject: Make PreVerifyID, IntSigsEnd, and KillSigsEnd const. llvm-svn: 51088 --- llvm/lib/System/Unix/Signals.inc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'llvm/lib/System/Unix') 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 *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]; -- cgit v1.2.3