diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2012-02-08 14:43:53 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2012-02-08 14:43:53 +0000 |
commit | 90a468c424f7d0a85b3dc783634106d9a46d6688 (patch) | |
tree | 669d4ca0236e49e288e3c6f409559d9c2802bcc5 /include/llvm/MC/MCRegisterInfo.h | |
parent | 8c160548ce58c87242335b041f80e1b97f974823 (diff) | |
download | llvm-90a468c424f7d0a85b3dc783634106d9a46d6688.tar.gz llvm-90a468c424f7d0a85b3dc783634106d9a46d6688.tar.bz2 llvm-90a468c424f7d0a85b3dc783634106d9a46d6688.tar.xz |
Value initialize MCRegisterClasses. Not sure how could miss this during the MCTargetDesc refactor.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150076 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC/MCRegisterInfo.h')
-rw-r--r-- | include/llvm/MC/MCRegisterInfo.h | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/include/llvm/MC/MCRegisterInfo.h b/include/llvm/MC/MCRegisterInfo.h index ec21fba945..4d4e9f66d7 100644 --- a/include/llvm/MC/MCRegisterInfo.h +++ b/include/llvm/MC/MCRegisterInfo.h @@ -27,7 +27,7 @@ class MCRegisterClass { public: typedef const unsigned* iterator; typedef const unsigned* const_iterator; -private: + unsigned ID; const char *Name; const unsigned RegSize, Alignment; // Size & Alignment of register in bytes @@ -36,17 +36,6 @@ private: const iterator RegsBegin, RegsEnd; const unsigned char *const RegSet; const unsigned RegSetSize; -public: - MCRegisterClass(unsigned id, const char *name, - unsigned RS, unsigned Al, int CC, bool Allocable, - iterator RB, iterator RE, const unsigned char *Bits, - unsigned NumBytes) - : ID(id), Name(name), RegSize(RS), Alignment(Al), CopyCost(CC), - Allocatable(Allocable), RegsBegin(RB), RegsEnd(RE), RegSet(Bits), - RegSetSize(NumBytes) { - for (iterator i = RegsBegin; i != RegsEnd; ++i) - assert(contains(*i) && "Bit field corrupted."); - } /// getID() - Return the register class ID number. /// |