[cfe-commits] r70955 - /cfe/branches/Apple/Dib/include/clang/AST/RecordLayout.h
Mike Stump
mrs at apple.com
Mon May 4 18:42:16 PDT 2009
Author: mrs
Date: Mon May 4 20:42:15 2009
New Revision: 70955
URL: http://llvm.org/viewvc/llvm-project?rev=70955&view=rev
Log:
Merge in 70909:
Add ASTRecordLayout::getNextOffset accessor, and some doxygen comments.
Modified:
cfe/branches/Apple/Dib/include/clang/AST/RecordLayout.h
Modified: cfe/branches/Apple/Dib/include/clang/AST/RecordLayout.h
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/Apple/Dib/include/clang/AST/RecordLayout.h?rev=70955&r1=70954&r2=70955&view=diff
==============================================================================
--- cfe/branches/Apple/Dib/include/clang/AST/RecordLayout.h (original)
+++ cfe/branches/Apple/Dib/include/clang/AST/RecordLayout.h Mon May 4 20:42:15 2009
@@ -72,14 +72,24 @@
void operator=(const ASTRecordLayout&); // DO NOT IMPLEMENT
public:
+ /// getAlignment - Get the record alignment in bits.
unsigned getAlignment() const { return Alignment; }
+
+ /// getSize - Get the record size in bits.
uint64_t getSize() const { return Size; }
+ /// getFieldOffset - Get the offset of the given field index, in
+ /// bits.
uint64_t getFieldOffset(unsigned FieldNo) const {
assert (FieldNo < FieldCount && "Invalid Field No");
return FieldOffsets[FieldNo];
}
+ /// getNextOffset - Get the next available (unused) offset in the
+ /// structure, in bits.
+ uint64_t getNextOffset() const {
+ return NextOffset;
+ }
};
} // end namespace clang
More information about the cfe-commits
mailing list