summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/InterferenceCache.h
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/CodeGen/InterferenceCache.h
parent28b45ce151f3d4248646f2395c5319caa93cd015 (diff)
downloadbcm5719-llvm-57a3d084cde0fc8be03479f8fd32177d153cbcee.tar.gz
bcm5719-llvm-57a3d084cde0fc8be03479f8fd32177d153cbcee.zip
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/CodeGen/InterferenceCache.h')
-rw-r--r--llvm/lib/CodeGen/InterferenceCache.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/InterferenceCache.h b/llvm/lib/CodeGen/InterferenceCache.h
index 1791afbe6c2..6519a806e57 100644
--- a/llvm/lib/CodeGen/InterferenceCache.h
+++ b/llvm/lib/CodeGen/InterferenceCache.h
@@ -170,8 +170,8 @@ public:
/// Cursor - The primary query interface for the block interference cache.
class Cursor {
Entry *CacheEntry;
- BlockInterference *Current;
- static BlockInterference NoInterference;
+ const BlockInterference *Current;
+ static const BlockInterference NoInterference;
void setEntry(Entry *E) {
Current = nullptr;
OpenPOWER on IntegriCloud