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 | 043fb9a1fc0609285f60f0f87e5a18195408f34c (patch) | |
tree | 2de74b635ac0eba6fea286b11248e3b3e554f8cf /lib/CodeGen/CodeGenFunction.h | |
parent | 808bedfd8cf18146bde5a181862375f1b1d261af (diff) |
Factor out the code for emitting code to load vtable pointer members
so that it's done in one place.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@117386 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | lib/CodeGen/CodeGenFunction.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/CodeGenFunction.h b/lib/CodeGen/CodeGenFunction.h index e02cedd944..53056bc609 100644 --- a/lib/CodeGen/CodeGenFunction.h +++ b/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 |