aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGCXXABI.h
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-08-22 03:04:22 +0000
committerJohn McCall <rjmccall@apple.com>2010-08-22 03:04:22 +0000
commit3023def6bea3af6dbb51eea51f8cb8ea892d26cf (patch)
tree6b36fd5c4cd5344c45cd709f58d267a1d3b83093 /lib/CodeGen/CGCXXABI.h
parenta7e6845660f91ec611427e1db842780e1ec12bdb (diff)
Abstract out member-pointer conversions.
Pretty much everything having to do with member pointers is ABI-specific. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111770 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGCXXABI.h')
-rw-r--r--lib/CodeGen/CGCXXABI.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/CodeGen/CGCXXABI.h b/lib/CodeGen/CGCXXABI.h
index 7a89a3deac..a28436b3e9 100644
--- a/lib/CodeGen/CGCXXABI.h
+++ b/lib/CodeGen/CGCXXABI.h
@@ -20,6 +20,7 @@ namespace llvm {
}
namespace clang {
+ class CastExpr;
class MemberPointerType;
namespace CodeGen {
@@ -40,6 +41,12 @@ public:
llvm::Value *&This,
llvm::Value *MemPtr,
const MemberPointerType *MPT);
+
+ virtual void EmitMemberPointerConversion(CodeGenFunction &CGF,
+ const CastExpr *E,
+ llvm::Value *Src,
+ llvm::Value *Dest,
+ bool VolatileDest);
};
/// Creates an instance of a C++ ABI class.