mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 03:23:01 +02:00
Add more constness.
llvm-svn: 135838
This commit is contained in:
parent
54f168f5a5
commit
35d7f76497
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user