diff options
author | Anders Carlsson <andersca@mac.com> | 2010-05-26 15:20:08 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2010-05-26 15:20:08 +0000 |
commit | 0efac254e385f06e34158aaa351942c80149042f (patch) | |
tree | 9d321e697df69cfdba0dc68e4bf6b6b481bd9de5 | |
parent | c6cab68ae1f8ebdcabaf51391dba09bfbad02e4f (diff) |
Inline the RecordLayoutBuilder constructor.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104700 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/AST/RecordLayoutBuilder.cpp | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/lib/AST/RecordLayoutBuilder.cpp b/lib/AST/RecordLayoutBuilder.cpp index e554aebf40..259606d057 100644 --- a/lib/AST/RecordLayoutBuilder.cpp +++ b/lib/AST/RecordLayoutBuilder.cpp @@ -93,8 +93,13 @@ class RecordLayoutBuilder { typedef std::multimap<uint64_t, const CXXRecordDecl *> EmptyClassOffsetsTy; EmptyClassOffsetsTy EmptyClassOffsets; - RecordLayoutBuilder(ASTContext &Ctx); - + RecordLayoutBuilder(ASTContext &Context) + : Context(Context), Size(0), Alignment(8), Packed(false), + UnfilledBitsInLastByte(0), MaxFieldAlignment(0), DataSize(0), + IsUnion(false), NonVirtualSize(0), NonVirtualAlignment(8), PrimaryBase(0), + PrimaryBaseIsVirtual(false), FirstNearlyEmptyVBase(0), + SizeOfLargestEmptySubobject(0) { } + void Layout(const RecordDecl *D); void Layout(const CXXRecordDecl *D); void Layout(const ObjCInterfaceDecl *D); @@ -179,13 +184,6 @@ public: }; } // end anonymous namespace -RecordLayoutBuilder::RecordLayoutBuilder(ASTContext &Context) - : Context(Context), Size(0), Alignment(8), Packed(false), - UnfilledBitsInLastByte(0), MaxFieldAlignment(0), DataSize(0), IsUnion(false), - NonVirtualSize(0), NonVirtualAlignment(8), PrimaryBase(0), - PrimaryBaseIsVirtual(false), FirstNearlyEmptyVBase(0), - SizeOfLargestEmptySubobject(0) { } - /// IsNearlyEmpty - Indicates when a class has a vtable pointer, but /// no other data. bool RecordLayoutBuilder::IsNearlyEmpty(const CXXRecordDecl *RD) const { |