From 9e809e7da2448c08aa11f15be4680226754678ce Mon Sep 17 00:00:00 2001 From: Fariborz Jahanian Date: Tue, 28 Jul 2009 17:38:28 +0000 Subject: More work toward data member access ir-gen. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77332 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CodeGenFunction.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/CodeGen/CodeGenFunction.h') diff --git a/lib/CodeGen/CodeGenFunction.h b/lib/CodeGen/CodeGenFunction.h index 6e905e48ac..06265196f9 100644 --- a/lib/CodeGen/CodeGenFunction.h +++ b/lib/CodeGen/CodeGenFunction.h @@ -528,6 +528,14 @@ public: /// generating code for an C++ member function. llvm::Value *LoadCXXThis(); + /// AddressCXXOfBaseClass - This function will add the necessary delta + /// to the load of 'this' and returns address of the base class. + // FIXME. This currently only does a derived to non-virtual base conversion. + // Other kinds of conversions will come later. + llvm::Value *AddressCXXOfBaseClass(llvm::Value *ThisValue, + CXXRecordDecl *ClassDecl, + CXXRecordDecl *BaseClassDecl); + void EmitCXXConstructorCall(const CXXConstructorDecl *D, CXXCtorType Type, llvm::Value *This, CallExpr::const_arg_iterator ArgBeg, -- cgit v1.2.3-70-g09d2