[cfe-commits] r67859 - in /cfe/trunk/lib/Sema: SemaInherit.cpp SemaInherit.h

Anders Carlsson andersca at mac.com
Fri Mar 27 11:54:30 PDT 2009


Author: andersca
Date: Fri Mar 27 13:54:29 2009
New Revision: 67859

URL: http://llvm.org/viewvc/llvm-project?rev=67859&view=rev
Log:
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.

Modified:
    cfe/trunk/lib/Sema/SemaInherit.cpp
    cfe/trunk/lib/Sema/SemaInherit.h

Modified: cfe/trunk/lib/Sema/SemaInherit.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaInherit.cpp?rev=67859&r1=67858&r2=67859&view=diff

==============================================================================
--- cfe/trunk/lib/Sema/SemaInherit.cpp (original)
+++ cfe/trunk/lib/Sema/SemaInherit.cpp Fri Mar 27 13:54:29 2009
@@ -132,6 +132,7 @@
       // Add this base specifier to the current path.
       BasePathElement Element;
       Element.Base = &*BaseSpec;
+      Element.Class = Class;
       if (BaseSpec->isVirtual())
         Element.SubobjectNumber = 0;
       else

Modified: cfe/trunk/lib/Sema/SemaInherit.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaInherit.h?rev=67859&r1=67858&r2=67859&view=diff

==============================================================================
--- cfe/trunk/lib/Sema/SemaInherit.h (original)
+++ cfe/trunk/lib/Sema/SemaInherit.h Fri Mar 27 13:54:29 2009
@@ -39,6 +39,9 @@
     /// 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





More information about the cfe-commits mailing list