Add a Class field to the base path element structure. This holds the record decl of the class taht the base is a base of.

llvm-svn: 67859
This commit is contained in:
Anders Carlsson 2009-03-27 18:54:29 +00:00
parent 586c66d5ba
commit 93d35acb28
2 changed files with 4 additions and 0 deletions

View File

@ -132,6 +132,7 @@ bool Sema::LookupInBases(CXXRecordDecl *Class,
// Add this base specifier to the current path.
BasePathElement Element;
Element.Base = &*BaseSpec;
Element.Class = Class;
if (BaseSpec->isVirtual())
Element.SubobjectNumber = 0;
else

View File

@ -39,6 +39,9 @@ namespace clang {
/// path element.
const CXXBaseSpecifier *Base;
/// Class - The record decl of the class that the base is a base of.
const CXXRecordDecl *Class;
/// SubobjectNumber - Identifies which base class subobject (of type
/// @c Base->getType()) this base path element refers to. This
/// value is only valid if @c !Base->isVirtual(), because there