summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-10-26 18:44:08 +0000
committerDan Gohman <gohman@apple.com>2010-10-26 18:44:08 +0000
commit8fc50c296a7cdf8ca9bd5440272208105ce7551f (patch)
tree4074fa508a2c7feb08e7212ff4cf5ea43d5af913 /clang/lib/CodeGen/CodeGenFunction.h
parentdb192ba90f9fafda425982e9d1d4dbec288a6527 (diff)
downloadbcm5719-llvm-8fc50c296a7cdf8ca9bd5440272208105ce7551f.tar.gz
bcm5719-llvm-8fc50c296a7cdf8ca9bd5440272208105ce7551f.zip
Factor out the code for emitting code to load vtable pointer members
so that it's done in one place. llvm-svn: 117386
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h
index e02cedd944a..53056bc6098 100644
--- a/clang/lib/CodeGen/CodeGenFunction.h
+++ b/clang/lib/CodeGen/CodeGenFunction.h
@@ -888,6 +888,9 @@ public:
void InitializeVTablePointers(const CXXRecordDecl *ClassDecl);
+ /// GetVTablePtr - Return the Value of the vtable pointer member pointed
+ /// to by This.
+ llvm::Value *GetVTablePtr(llvm::Value *This, const llvm::Type *Ty);
/// EnterDtorCleanups - Enter the cleanups necessary to complete the
/// given phase of destruction for a destructor. The end result
OpenPOWER on IntegriCloud