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 | 71883edee29bbbbf3af2aca08de9e50e257252e7 (patch) | |
tree | 87ad1c1a571df961228d6fddeeb4635fa7accecc /include/llvm/MC | |
parent | 883d99f70ba41d334adc9fef321804a2f88c4468 (diff) | |
download | external_llvm-71883edee29bbbbf3af2aca08de9e50e257252e7.zip external_llvm-71883edee29bbbbf3af2aca08de9e50e257252e7.tar.gz external_llvm-71883edee29bbbbf3af2aca08de9e50e257252e7.tar.bz2 |
Add more constness.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135838 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC')
-rw-r--r-- | include/llvm/MC/MCRegisterInfo.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/MC/MCRegisterInfo.h b/include/llvm/MC/MCRegisterInfo.h index eeb4f3e..1deb4ef 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. |