aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-12-03 03:06:55 +0000
committerAnders Carlsson <andersca@mac.com>2009-12-03 03:06:55 +0000
commit9fcfc421d3bf124beed5b185b8d6d795edcbf83a (patch)
treecdde18bd450a254042217c55f96a233c18aa6cc5 /lib/CodeGen/CodeGenModule.h
parent3b908ce403318fbf38932c7ab566ed3a8d6ee85d (diff)
Add CodeGenModule::ComputeThunkAdjustment, which Eli wrote.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90401 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.h')
-rw-r--r--lib/CodeGen/CodeGenModule.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/CodeGen/CodeGenModule.h b/lib/CodeGen/CodeGenModule.h
index e5bd3e2d48..9746570917 100644
--- a/lib/CodeGen/CodeGenModule.h
+++ b/lib/CodeGen/CodeGenModule.h
@@ -232,7 +232,7 @@ public:
/// GenerateRTTINonClass - Generate the rtti information for the given
/// non-class type.
llvm::Constant *GenerateRTTI(QualType Ty);
-
+
/// BuildThunk - Build a thunk for the given method.
llvm::Constant *BuildThunk(const CXXMethodDecl *MD, bool Extern,
const ThunkAdjustment &ThisAdjustment);
@@ -252,6 +252,11 @@ public:
llvm::Constant *GetCXXBaseClassOffset(const CXXRecordDecl *ClassDecl,
const CXXRecordDecl *BaseClassDecl);
+ /// ComputeThunkAdjustment - Returns the two parts required to compute the
+ /// offset for an object.
+ ThunkAdjustment ComputeThunkAdjustment(const CXXRecordDecl *ClassDecl,
+ const CXXRecordDecl *BaseClassDecl);
+
/// GetStringForStringLiteral - Return the appropriate bytes for a string
/// literal, properly padded to match the literal type. If only the address of
/// a constant is needed consider using GetAddrOfConstantStringLiteral.