From: Benjamin Kramer Date: Sat, 23 Jul 2011 01:40:15 +0000 (+0000) Subject: Add more constness. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=71883edee29bbbbf3af2aca08de9e50e257252e7;p=oota-llvm.git Add more constness. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135838 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/MC/MCRegisterInfo.h b/include/llvm/MC/MCRegisterInfo.h index eeb4f3e8f30..1deb4ef2524 100644 --- a/include/llvm/MC/MCRegisterInfo.h +++ b/include/llvm/MC/MCRegisterInfo.h @@ -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.