summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-09-29 03:13:20 +0000
committerAnders Carlsson <andersca@mac.com>2009-09-29 03:13:20 +0000
commit9150a2a8c042191324082e59e079820343e4c6c0 (patch)
tree2d2b7f11b84b952b48a5227237e1ac575013034c /clang/lib/CodeGen/CodeGenFunction.h
parent1cbdf6e850d297e7875c442fa72553498b49aaca (diff)
downloadbcm5719-llvm-9150a2a8c042191324082e59e079820343e4c6c0.tar.gz
bcm5719-llvm-9150a2a8c042191324082e59e079820343e4c6c0.zip
Handle CK_BaseToDerivedMemberPointer for member function pointers. Fixes PR5091.
llvm-svn: 83041
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h
index 73cac244311..faad45ad96e 100644
--- a/clang/lib/CodeGen/CodeGenFunction.h
+++ b/clang/lib/CodeGen/CodeGenFunction.h
@@ -589,6 +589,11 @@ public:
const CXXRecordDecl *BaseClassDecl,
bool NullCheckValue);
+ /// GetCXXBaseClassOffset - Returns the offset from a derived class to its
+ /// base class. Returns null if the offset is 0.
+ llvm::Constant *GetCXXBaseClassOffset(const CXXRecordDecl *ClassDecl,
+ const CXXRecordDecl *BaseClassDecl);
+
void EmitClassAggrMemberwiseCopy(llvm::Value *DestValue,
llvm::Value *SrcValue,
const ArrayType *Array,
OpenPOWER on IntegriCloud