[llvm-commits] [llvm] r51088 - in /llvm/trunk/lib: System/Unix/Signals.inc VMCore/Verifier.cpp
Dan Gohman
gohman at apple.com
Tue May 13 17:42:30 PDT 2008
Author: djg
Date: Tue May 13 19:42:30 2008
New Revision: 51088
URL: http://llvm.org/viewvc/llvm-project?rev=51088&view=rev
Log:
Make PreVerifyID, IntSigsEnd, and KillSigsEnd const.
Modified:
llvm/trunk/lib/System/Unix/Signals.inc
llvm/trunk/lib/VMCore/Verifier.cpp
Modified: llvm/trunk/lib/System/Unix/Signals.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/System/Unix/Signals.inc?rev=51088&r1=51087&r2=51088&view=diff
==============================================================================
--- llvm/trunk/lib/System/Unix/Signals.inc (original)
+++ llvm/trunk/lib/System/Unix/Signals.inc Tue May 13 19:42:30 2008
@@ -41,7 +41,8 @@
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 @@
, 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];
Modified: llvm/trunk/lib/VMCore/Verifier.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Verifier.cpp?rev=51088&r1=51087&r2=51088&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/Verifier.cpp (original)
+++ llvm/trunk/lib/VMCore/Verifier.cpp Tue May 13 19:42:30 2008
@@ -97,7 +97,7 @@
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
More information about the llvm-commits
mailing list