mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-29 22:50:47 +00:00
Make PreVerifyID, IntSigsEnd, and KillSigsEnd const.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51088 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5d9bac6d8d
commit
4d9dd6beae
@ -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];
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user