[cfe-commits] r101221 - /cfe/trunk/lib/CodeGen/CGRecordLayout.h
Daniel Dunbar
daniel at zuster.org
Tue Apr 13 21:08:00 PDT 2010
Author: ddunbar
Date: Tue Apr 13 23:07:59 2010
New Revision: 101221
URL: http://llvm.org/viewvc/llvm-project?rev=101221&view=rev
Log:
IRgen: Tweak CGBitFieldInfo doxyments & add an accessor.
Modified:
cfe/trunk/lib/CodeGen/CGRecordLayout.h
Modified: cfe/trunk/lib/CodeGen/CGRecordLayout.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGRecordLayout.h?rev=101221&r1=101220&r2=101221&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGRecordLayout.h (original)
+++ cfe/trunk/lib/CodeGen/CGRecordLayout.h Tue Apr 13 23:07:59 2010
@@ -101,8 +101,16 @@
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 @@
return Components[Index];
}
+ /// @}
+
void print(llvm::raw_ostream &OS) const;
void dump() const;
};
More information about the cfe-commits
mailing list