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 | c6d171ec7765236b674f630f691f9eba8f7a23b1 (patch) | |
tree | a8b122db81165cc086eaf93507496d0280643470 /clang/lib/CodeGen/CodeGenFunction.h | |
parent | febe39b488471a77083c1c6613b67b22cf8aaf7a (diff) | |
download | bcm5719-llvm-c6d171ec7765236b674f630f691f9eba8f7a23b1.tar.gz bcm5719-llvm-c6d171ec7765236b674f630f691f9eba8f7a23b1.zip |
Change GetAddressCXXOfBaseClass to use CXXBasePaths for calculating base class offsets. Fix the code to handle virtual bases as well.
llvm-svn: 83426
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index 34b3860a48f..42de9fb62e6 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/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, |