aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/Lint.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2015-03-08 16:07:39 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2015-03-08 16:07:39 +0000
commit57a3d084cde0fc8be03479f8fd32177d153cbcee (patch)
tree7bcaef27ebfd78811e5c166d8c1fb89508269a53 /llvm/lib/Analysis/Lint.cpp
parent28b45ce151f3d4248646f2395c5319caa93cd015 (diff)
downloadllvm-57a3d084cde0fc8be03479f8fd32177d153cbcee.zip
llvm-57a3d084cde0fc8be03479f8fd32177d153cbcee.tar.gz
llvm-57a3d084cde0fc8be03479f8fd32177d153cbcee.tar.bz2
Make static variables const if possible. Makes them go into a read-only section.
Or fold them into a initializer list which has the same effect. NFC. llvm-svn: 231598
Diffstat (limited to 'llvm/lib/Analysis/Lint.cpp')
-rw-r--r--llvm/lib/Analysis/Lint.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Analysis/Lint.cpp b/llvm/lib/Analysis/Lint.cpp
index eadd2754..56065db 100644
--- a/llvm/lib/Analysis/Lint.cpp
+++ b/llvm/lib/Analysis/Lint.cpp
@@ -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> {