aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGRecordLayout.h
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-04-15 05:09:28 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-04-15 05:09:28 +0000
commit7fb619500404129322af972aab66c369949a2a74 (patch)
tree7fd41f5c9c2948ac1037ffb6d4cb6799a93a5663 /lib/CodeGen/CGRecordLayout.h
parent2677261656b2f3325218d38bdd9d102ad732da92 (diff)
IRgen: Eliminate now unused fields from CGBitFieldInfo.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@101344 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGRecordLayout.h')
-rw-r--r--lib/CodeGen/CGRecordLayout.h21
1 files changed, 9 insertions, 12 deletions
diff --git a/lib/CodeGen/CGRecordLayout.h b/lib/CodeGen/CGRecordLayout.h
index 86ae27e2bb..dd60dbd593 100644
--- a/lib/CodeGen/CGRecordLayout.h
+++ b/lib/CodeGen/CGRecordLayout.h
@@ -77,9 +77,6 @@ public:
};
private:
- /// The number of access components to use.
- unsigned NumComponents;
-
/// The components to use to access the bit-field. We may need up to three
/// separate components to support up to i64 bit-field access (4 + 2 + 1 byte
/// accesses).
@@ -87,20 +84,20 @@ private:
// FIXME: De-hardcode this, just allocate following the struct.
AccessInfo Components[3];
-public:
- CGBitFieldInfo(const llvm::Type *FieldTy, unsigned FieldNo,
- unsigned Start, unsigned Size, bool IsSigned)
- : FieldTy(FieldTy), FieldNo(FieldNo),
- Start(Start), Size(Size), IsSigned(IsSigned) {}
+ /// The total size of the bit-field, in bits.
+ unsigned Size;
- const llvm::Type *FieldTy;
- unsigned FieldNo;
+ /// The number of access components to use.
+ unsigned NumComponents;
- unsigned Start;
- unsigned Size;
+ /// Whether the bit-field is signed.
bool IsSigned : 1;
public:
+ CGBitFieldInfo(unsigned Size, bool IsSigned)
+ : Size(Size), IsSigned(IsSigned) {}
+
+public:
/// \brief Check whether this bit-field access is (i.e., should be sign
/// extended on loads).
bool isSigned() const { return IsSigned; }