diff options
author | Dan Gohman <gohman@apple.com> | 2010-10-26 18:44:08 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-10-26 18:44:08 +0000 |
commit | 8fc50c296a7cdf8ca9bd5440272208105ce7551f (patch) | |
tree | 4074fa508a2c7feb08e7212ff4cf5ea43d5af913 /clang/lib/CodeGen/CodeGenFunction.h | |
parent | db192ba90f9fafda425982e9d1d4dbec288a6527 (diff) | |
download | bcm5719-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.h | 3 |
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 |