summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2009-12-18 23:47:41 +0000
committerEli Friedman <eli.friedman@gmail.com>2009-12-18 23:47:41 +0000
commite12e77bed10f87bdc7305d0dbd1de89e48f280c1 (patch)
tree4e40c3fbb96446c7bf69ad36b1eb257bf03feb52 /lib/CodeGen/CodeGenFunction.h
parentc2c0d562bb1d03501433b450bb97df7812598d4c (diff)
downloadclang-e12e77bed10f87bdc7305d0dbd1de89e48f280c1.tar.gz
clang-e12e77bed10f87bdc7305d0dbd1de89e48f280c1.tar.bz2
clang-e12e77bed10f87bdc7305d0dbd1de89e48f280c1.tar.xz
Work in progress for setting the vtable pointers for all bases correctly in
the constructor. This doesn't handle cases requiring the VTT at the moment, and generates unnecessary stores, but I think it's essentially correct. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91731 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.h')
-rw-r--r--lib/CodeGen/CodeGenFunction.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/CodeGen/CodeGenFunction.h b/lib/CodeGen/CodeGenFunction.h
index 4bacd16f92..c2e59c01eb 100644
--- a/lib/CodeGen/CodeGenFunction.h
+++ b/lib/CodeGen/CodeGenFunction.h
@@ -515,6 +515,12 @@ public:
void InitializeVtablePtrs(const CXXRecordDecl *ClassDecl);
+ void InitializeVtablePtrsRecursive(const CXXRecordDecl *ClassDecl,
+ llvm::Constant *Vtable,
+ CodeGenModule::AddrSubMap_t& AddressPoints,
+ llvm::Value *ThisPtr,
+ uint64_t Offset);
+
void SynthesizeCXXCopyConstructor(const CXXConstructorDecl *Ctor,
CXXCtorType Type,
llvm::Function *Fn,