diff options
author | Mike Stump <mrs@apple.com> | 2009-11-03 16:59:27 +0000 |
---|---|---|
committer | Mike Stump <mrs@apple.com> | 2009-11-03 16:59:27 +0000 |
commit | c902d22129322731607988dafb8cd7f708eb75b1 (patch) | |
tree | d00ad60aeb1a405b5bb12209819b877d828d1cfb /lib/CodeGen/CodeGenFunction.h | |
parent | 02a24ee67c0a91bdb0db8a651d5748595652e670 (diff) |
Refine return value adjustments for thunks.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85905 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | lib/CodeGen/CodeGenFunction.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/CodeGen/CodeGenFunction.h b/lib/CodeGen/CodeGenFunction.h index c4b8945ce3..893f1ed880 100644 --- a/lib/CodeGen/CodeGenFunction.h +++ b/lib/CodeGen/CodeGenFunction.h @@ -387,6 +387,11 @@ public: /// GenerateVtable - Generate the vtable for the given type. llvm::Value *GenerateVtable(const CXXRecordDecl *RD); + /// DynamicTypeAdjust - Do the non-virtual and virtual adjustments on an + /// object pointer to alter the dynamic type of the pointer. Used by + /// GenerateCovariantThunk for building thunks. + llvm::Value *DynamicTypeAdjust(llvm::Value *V, int64_t nv, int64_t v); + /// GenerateThunk - Generate a thunk for the given method llvm::Constant *GenerateThunk(llvm::Function *Fn, const CXXMethodDecl *MD, bool Extern, int64_t nv, int64_t v); |