diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-04-14 04:07:59 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-04-14 04:07:59 +0000 |
commit | e792584917983edb9bbfd5751b1fa6a4136e566a (patch) | |
tree | 1ffa94e35268bbade9afbb5ddb2aaaec569edce7 /lib | |
parent | 8877321ca66b2887c2f377a7f724a62f34fdf1cd (diff) |
IRgen: Tweak CGBitFieldInfo doxyments & add an accessor.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@101221 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/CGRecordLayout.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/CodeGen/CGRecordLayout.h b/lib/CodeGen/CGRecordLayout.h index 234f859118..86ae27e2bb 100644 --- a/lib/CodeGen/CGRecordLayout.h +++ b/lib/CodeGen/CGRecordLayout.h @@ -101,8 +101,16 @@ public: bool IsSigned : 1; public: + /// \brief Check whether this bit-field access is (i.e., should be sign + /// extended on loads). bool isSigned() const { return IsSigned; } + /// \brief Get the size of the bit-field, in bits. + unsigned getSize() const { return Size; } + + /// @name Component Access + /// @{ + unsigned getNumComponents() const { return NumComponents; } void setNumComponents(unsigned Value) { assert(Value < 4 && "Invalid number of components!"); @@ -118,6 +126,8 @@ public: return Components[Index]; } + /// @} + void print(llvm::raw_ostream &OS) const; void dump() const; }; |