Make PreVerifyID, IntSigsEnd, and KillSigsEnd const.

llvm-svn: 51088
This commit is contained in:
Dan Gohman 2008-05-14 00:42:30 +00:00
parent c92abb44db
commit 4e974ab933
2 changed files with 5 additions and 3 deletions

View 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];

View 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