[llvm-commits] [llvm] r135838 - /llvm/trunk/include/llvm/MC/MCRegisterInfo.h
Benjamin Kramer
benny.kra at googlemail.com
Fri Jul 22 18:40:15 PDT 2011
Author: d0k
Date: Fri Jul 22 20:40:15 2011
New Revision: 135838
URL: http://llvm.org/viewvc/llvm-project?rev=135838&view=rev
Log:
Add more constness.
Modified:
llvm/trunk/include/llvm/MC/MCRegisterInfo.h
Modified: llvm/trunk/include/llvm/MC/MCRegisterInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/MC/MCRegisterInfo.h?rev=135838&r1=135837&r2=135838&view=diff
==============================================================================
--- llvm/trunk/include/llvm/MC/MCRegisterInfo.h (original)
+++ llvm/trunk/include/llvm/MC/MCRegisterInfo.h Fri Jul 22 20:40:15 2011
@@ -33,7 +33,7 @@
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 @@
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.
More information about the llvm-commits
mailing list