summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2012-02-21 07:36:39 +0000
committerCraig Topper <craig.topper@gmail.com>2012-02-21 07:36:39 +0000
commit7d9b20792bfc528647f8bd7644934b228cc6c60b (patch)
treea79fc58997c9b6b40d65fd529e4ee1e6844de5a4 /include
parentf3e3783012dc7875ed37be8aaaefd96f98454781 (diff)
downloadllvm-7d9b20792bfc528647f8bd7644934b228cc6c60b.tar.gz
llvm-7d9b20792bfc528647f8bd7644934b228cc6c60b.tar.bz2
llvm-7d9b20792bfc528647f8bd7644934b228cc6c60b.tar.xz
Reorder some members in MCRegisterClass to remove padding on 64-bit builds.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151043 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/MC/MCRegisterInfo.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/MC/MCRegisterInfo.h b/include/llvm/MC/MCRegisterInfo.h
index c4c6ccf9b2..0ffc73c79e 100644
--- a/include/llvm/MC/MCRegisterInfo.h
+++ b/include/llvm/MC/MCRegisterInfo.h
@@ -28,14 +28,14 @@ public:
typedef const unsigned* iterator;
typedef const unsigned* const_iterator;
- unsigned ID;
+ const unsigned ID;
const char *Name;
const unsigned RegSize, Alignment; // Size & Alignment of register in bytes
const int CopyCost;
const bool Allocatable;
const iterator RegsBegin;
- unsigned RegsSize;
const unsigned char *const RegSet;
+ const unsigned RegsSize;
const unsigned RegSetSize;
/// getID() - Return the register class ID number.