diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2011-07-23 01:40:15 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2011-07-23 01:40:15 +0000 |
commit | eeddeb9601b1bd65a3a87ffa7d140ccb3428ddec (patch) | |
tree | 24a656f6ad69ff4adf2389440c9b75f93cc56739 | |
parent | 287bc6bdf60ac5d6b9b469f18a77282202e2cf96 (diff) | |
download | bcm5719-llvm-eeddeb9601b1bd65a3a87ffa7d140ccb3428ddec.tar.gz bcm5719-llvm-eeddeb9601b1bd65a3a87ffa7d140ccb3428ddec.zip |
Add more constness.
llvm-svn: 135838
-rw-r--r-- | llvm/include/llvm/MC/MCRegisterInfo.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/include/llvm/MC/MCRegisterInfo.h b/llvm/include/llvm/MC/MCRegisterInfo.h index eeb4f3e8f30..1deb4ef2524 100644 --- a/llvm/include/llvm/MC/MCRegisterInfo.h +++ b/llvm/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. |