From c778540f9a43d3e9c0a123c2bf202d6d656adbbe Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Thu, 26 Nov 2009 02:32:05 +0000 Subject: Add a ThunkAdjustment struct which holds a non-virtual and a virtual adjustment offset. Start using it. General cleanup in Mangle.cpp. llvm-svn: 89925 --- clang/lib/CodeGen/CodeGenFunction.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'clang/lib/CodeGen/CodeGenFunction.h') diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index 28e000a4920..b811c25b8a8 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/lib/CodeGen/CodeGenFunction.h @@ -441,7 +441,8 @@ public: /// 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); + bool Extern, + const ThunkAdjustment &ThisAdjustment); llvm::Constant *GenerateCovariantThunk(llvm::Function *Fn, const CXXMethodDecl *MD, bool Extern, int64_t nv_t, int64_t v_t, -- cgit v1.2.3