Add more constness.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sat, 23 Jul 2011 01:40:15 +0000 (01:40 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sat, 23 Jul 2011 01:40:15 +0000 (01:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135838 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/MC/MCRegisterInfo.h

index eeb4f3e8f30562fa2b9877a1d0ae9a98ae28cd15..1deb4ef252423109b90f7cfba608328710ed34cb 100644 (file)
@@ -33,7 +33,7 @@ private:
   const int CopyCost;
   const bool Allocatable;
   const iterator RegsBegin, RegsEnd;
-  const unsigned char *RegSet;
+  const unsigned char *const RegSet;
   const unsigned RegSetSize;
 public:
   MCRegisterClass(unsigned id, const char *name,
@@ -44,7 +44,7 @@ public:
       Allocatable(Allocable), RegsBegin(RB), RegsEnd(RE), RegSet(Bits),
       RegSetSize(NumBytes) {
     for (iterator i = RegsBegin; i != RegsEnd; ++i)
-       assert (contains(*i) && "Bit field corrupted.");
+       assert(contains(*i) && "Bit field corrupted.");
   }
 
   /// getID() - Return the register class ID number.