diff options
author | Anders Carlsson <andersca@mac.com> | 2010-11-24 22:50:27 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2010-11-24 22:50:27 +0000 |
commit | 4131f00a1f48369e4f6c0835d148da9dd45869c4 (patch) | |
tree | eb4a728df0e251d9279b670dd02a8601f985dc0c /clang/lib/CodeGen/CGRecordLayoutBuilder.cpp | |
parent | b8de00ee071dc31cc3e3f38f32029b466618b6f3 (diff) | |
download | bcm5719-llvm-4131f00a1f48369e4f6c0835d148da9dd45869c4.tar.gz bcm5719-llvm-4131f00a1f48369e4f6c0835d148da9dd45869c4.zip |
Add CXXRecordDecl::getIndirectPrimaryBases.
llvm-svn: 120129
Diffstat (limited to 'clang/lib/CodeGen/CGRecordLayoutBuilder.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGRecordLayoutBuilder.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGRecordLayoutBuilder.cpp b/clang/lib/CodeGen/CGRecordLayoutBuilder.cpp index f846fca5069..fcaf1e112d6 100644 --- a/clang/lib/CodeGen/CGRecordLayoutBuilder.cpp +++ b/clang/lib/CodeGen/CGRecordLayoutBuilder.cpp @@ -14,6 +14,7 @@ #include "CGRecordLayout.h" #include "clang/AST/ASTContext.h" #include "clang/AST/Attr.h" +#include "clang/AST/CXXInheritance.h" #include "clang/AST/DeclCXX.h" #include "clang/AST/Expr.h" #include "clang/AST/RecordLayout.h" @@ -63,7 +64,11 @@ public: typedef std::pair<const CXXRecordDecl *, unsigned> LLVMBaseInfo; llvm::SmallVector<LLVMBaseInfo, 16> LLVMNonVirtualBases; - + + /// IndirectPrimaryBases - Virtual base classes, direct or indirect, that are + /// primary base classes for some other direct or indirect base class. + CXXIndirectPrimaryBaseSet IndirectPrimaryBases; + /// IsZeroInitializable - Whether this struct can be C++ /// zero-initialized with an LLVM zeroinitializer. bool IsZeroInitializable; |