diff options
author | Anders Carlsson <andersca@mac.com> | 2010-04-24 21:06:20 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2010-04-24 21:06:20 +0000 |
commit | 34a2d384c745ebc39cae45dc1c0c4a6a7012e09b (patch) | |
tree | 56ff3f9462b1b8abb47c45c50c30d8aa7d2262ed /lib/CodeGen/CodeGenFunction.h | |
parent | d1a272204cef9304df3930d94f66713b05db27d6 (diff) |
Add a new GetAddressOfBaseClass overload that takes a base path and. Use it for derived-to-base casts.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102270 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | lib/CodeGen/CodeGenFunction.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/CodeGen/CodeGenFunction.h b/lib/CodeGen/CodeGenFunction.h index b421a38371..0707ada38c 100644 --- a/lib/CodeGen/CodeGenFunction.h +++ b/lib/CodeGen/CodeGenFunction.h @@ -787,7 +787,11 @@ public: const CXXRecordDecl *ClassDecl, const CXXRecordDecl *BaseClassDecl, bool NullCheckValue); - + llvm::Value *GetAddressOfBaseClass(llvm::Value *Value, + const CXXRecordDecl *ClassDecl, + const CXXBaseSpecifierArray &BasePath, + bool NullCheckValue); + llvm::Value *GetAddressOfDerivedClass(llvm::Value *Value, const CXXRecordDecl *ClassDecl, const CXXRecordDecl *DerivedClassDecl, |