aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2010-03-28 20:34:31 +0000
committerAnders Carlsson <andersca@mac.com>2010-03-28 20:34:31 +0000
commitbdb88655204ec14a20e51210bd50e84fe2f1cee9 (patch)
tree387f6ae8265ca7a4751331baceb4f6b099c2a862 /lib/CodeGen/CodeGenFunction.h
parentd103f9f9b401b419e756f8c1849683cd77586067 (diff)
More improvements to setting the vtable pointer. We now no longer set the vtable pointer for non-virtual primary bases. We also do a pre-order traversal of the class hierarchy; this is necessary in order to get the right vbase offset offsets in base ctors/dtors.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99775 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.h')
-rw-r--r--lib/CodeGen/CodeGenFunction.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/CodeGen/CodeGenFunction.h b/lib/CodeGen/CodeGenFunction.h
index 3d7165b0a9..31ab1011b4 100644
--- a/lib/CodeGen/CodeGenFunction.h
+++ b/lib/CodeGen/CodeGenFunction.h
@@ -519,11 +519,13 @@ public:
const CXXRecordDecl *VTableClass);
typedef llvm::SmallPtrSet<const CXXRecordDecl *, 4> VisitedVirtualBasesSetTy;
+ void InitializeVTablePointers(BaseSubobject Base, bool BaseIsMorallyVirtual,
+ bool BaseIsNonVirtualPrimaryBase,
+ llvm::Constant *VTable,
+ const CXXRecordDecl *VTableClass,
+ VisitedVirtualBasesSetTy& VBases);
- void InitializeVtablePtrs(BaseSubobject Base, llvm::Constant *VTable,
- const CXXRecordDecl *VTableClass);
-
- void InitializeVtablePtrs(const CXXRecordDecl *ClassDecl);
+ void InitializeVTablePointers(const CXXRecordDecl *ClassDecl);
void SynthesizeCXXCopyConstructor(const FunctionArgList &Args);