diff options
author | Anders Carlsson <andersca@mac.com> | 2009-10-06 22:43:30 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-10-06 22:43:30 +0000 |
commit | 2f1986b557fa671c4f8c9dd0d071398edfc073d5 (patch) | |
tree | a831fa1ba773c48b8992faf0086a80ec29a4f01d /lib/CodeGen/CodeGenFunction.h | |
parent | ff38915e02f56a5077788bca1e9274d43f05e360 (diff) |
Change GetAddressCXXOfBaseClass to use CXXBasePaths for calculating base class offsets. Fix the code to handle virtual bases as well.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83426 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | lib/CodeGen/CodeGenFunction.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/CodeGen/CodeGenFunction.h b/lib/CodeGen/CodeGenFunction.h index 34b3860a48..42de9fb62e 100644 --- a/lib/CodeGen/CodeGenFunction.h +++ b/lib/CodeGen/CodeGenFunction.h @@ -589,6 +589,11 @@ public: const CXXRecordDecl *BaseClassDecl, bool NullCheckValue); + llvm::Value * + GetVirtualCXXBaseClassOffset(llvm::Value *This, + const CXXRecordDecl *ClassDecl, + const CXXRecordDecl *BaseClassDecl); + void EmitClassAggrMemberwiseCopy(llvm::Value *DestValue, llvm::Value *SrcValue, const ArrayType *Array, |