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 | 77738205e6c6cdc78fe4f8beb3666c2976c6d8e1 (patch) | |
tree | c032d4f6e0389de2de3e0f89628bdb1d4902387e /clang/lib/CodeGen/CodeGenFunction.h | |
parent | a121b75d9d97daf01fd57834059a6529ca7696fc (diff) | |
download | bcm5719-llvm-77738205e6c6cdc78fe4f8beb3666c2976c6d8e1.tar.gz bcm5719-llvm-77738205e6c6cdc78fe4f8beb3666c2976c6d8e1.zip |
Refine return value adjustments for thunks.
llvm-svn: 85905
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index c4b8945ce3e..893f1ed8801 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/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); |