Make static variables const if possible. Makes them go into a read-only section.
[oota-llvm.git] / lib / Analysis / Lint.cpp
index eadd27546fd5ca670d99286d90a3fc5c818038d1..56065db28144c40cc9f978fafc086d20d0440533 100644 (file)
@@ -59,10 +59,10 @@ using namespace llvm;
 
 namespace {
   namespace MemRef {
-    static unsigned Read     = 1;
-    static unsigned Write    = 2;
-    static unsigned Callee   = 4;
-    static unsigned Branchee = 8;
+    static const unsigned Read     = 1;
+    static const unsigned Write    = 2;
+    static const unsigned Callee   = 4;
+    static const unsigned Branchee = 8;
   }
 
   class Lint : public FunctionPass, public InstVisitor<Lint> {