Make PreVerifyID, IntSigsEnd, and KillSigsEnd const.
authorDan Gohman <gohman@apple.com>
Wed, 14 May 2008 00:42:30 +0000 (00:42 +0000)
committerDan Gohman <gohman@apple.com>
Wed, 14 May 2008 00:42:30 +0000 (00:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51088 91177308-0d34-0410-b5e6-96231b3b80d8

lib/System/Unix/Signals.inc
lib/VMCore/Verifier.cpp

index 79236cdad9311ba624338ab2d75cbfeb8590ab19..4e0e6d22fd9e9c04ed2befcf87bf2aa56e7c3d78 100644 (file)
@@ -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];
index 86aff9bdade00f61da65e1972e017377ad144c6d..78158bea67ed0150df54a5c4a737e1058daee56f 100644 (file)
@@ -97,7 +97,7 @@ namespace {  // Anonymous namespace for class
 char PreVerifier::ID = 0;
 static RegisterPass<PreVerifier>
 PreVer("preverify", "Preliminary module verification");
-static const PassInfo *PreVerifyID = &PreVer;
+static const PassInfo *const PreVerifyID = &PreVer;
 
 namespace {
   struct VISIBILITY_HIDDEN