aboutsummaryrefslogtreecommitdiffstats
path: root/lib/System/Unix
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-05-14 00:42:30 +0000
committerDan Gohman <gohman@apple.com>2008-05-14 00:42:30 +0000
commitc336a13db5b8698585ebcb2e664024fae06fec76 (patch)
treef75461679799d26ccdbd6bd106d58d5774f3ae89 /lib/System/Unix
parenta543aa21fce0a04d18d94d7f4d5f148a012068bd (diff)
downloadexternal_llvm-c336a13db5b8698585ebcb2e664024fae06fec76.zip
external_llvm-c336a13db5b8698585ebcb2e664024fae06fec76.tar.gz
external_llvm-c336a13db5b8698585ebcb2e664024fae06fec76.tar.bz2
Make PreVerifyID, IntSigsEnd, and KillSigsEnd const.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51088 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System/Unix')
-rw-r--r--lib/System/Unix/Signals.inc6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/System/Unix/Signals.inc b/lib/System/Unix/Signals.inc
index 79236cd..4e0e6d2 100644
--- a/lib/System/Unix/Signals.inc
+++ b/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];