summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/RecordLayoutBuilder.h
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2010-05-26 05:20:58 +0000
committerAnders Carlsson <andersca@mac.com>2010-05-26 05:20:58 +0000
commitd20e7cd3c6e7c67b66917067d17236f16fc7d9b7 (patch)
treec7bcbfbd303f5ce7b0994c4d0f566ce60c989b24 /clang/lib/AST/RecordLayoutBuilder.h
parent0094eb26fcfc90d07a41112ba1d1f38a80896194 (diff)
downloadbcm5719-llvm-d20e7cd3c6e7c67b66917067d17236f16fc7d9b7.tar.gz
bcm5719-llvm-d20e7cd3c6e7c67b66917067d17236f16fc7d9b7.zip
No need to use the PrimaryBaseInfo struct in the builder.
llvm-svn: 104681
Diffstat (limited to 'clang/lib/AST/RecordLayoutBuilder.h')
-rw-r--r--clang/lib/AST/RecordLayoutBuilder.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/clang/lib/AST/RecordLayoutBuilder.h b/clang/lib/AST/RecordLayoutBuilder.h
index 5cb228dfc35..1e5ddb4479c 100644
--- a/clang/lib/AST/RecordLayoutBuilder.h
+++ b/clang/lib/AST/RecordLayoutBuilder.h
@@ -61,13 +61,19 @@ class ASTRecordLayoutBuilder {
/// PrimaryBase - the primary base class (if one exists) of the class
/// we're laying out.
- ASTRecordLayout::PrimaryBaseInfo PrimaryBase;
+ const CXXRecordDecl *PrimaryBase;
+
+ /// PrimaryBaseIsVirtual - Whether the primary base of the class we're laying
+ /// out is virtual.
+ bool PrimaryBaseIsVirtual;
+ typedef llvm::DenseMap<const CXXRecordDecl *, uint64_t> BaseOffsetsMapTy;
+
/// Bases - base classes and their offsets in the record.
- ASTRecordLayout::BaseOffsetsMapTy Bases;
+ BaseOffsetsMapTy Bases;
// VBases - virtual base classes and their offsets in the record.
- ASTRecordLayout::BaseOffsetsMapTy VBases;
+ BaseOffsetsMapTy VBases;
/// IndirectPrimaryBases - Virtual base classes, direct or indirect, that are
/// primary base classes for some other direct or indirect base class.
OpenPOWER on IntegriCloud