aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorMike Stump <mrs@apple.com>2009-11-10 07:44:33 +0000
committerMike Stump <mrs@apple.com>2009-11-10 07:44:33 +0000
commit380dd759b33fd059b1aa7dbd85f8e66ca32f7bdc (patch)
tree27f20d2450d139bc1fa37d4f20813b524f1c24a4 /lib/CodeGen/CodeGenModule.h
parentd7be78a0524251c30329359c9d92485c6d7ac424 (diff)
Add vtable caching to prevent multiple vtables for the same class from
being generated. Add the most derived vtable pointer to the VTT. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86671 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.h')
-rw-r--r--lib/CodeGen/CodeGenModule.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/CodeGen/CodeGenModule.h b/lib/CodeGen/CodeGenModule.h
index b09f52cf2b..6c433d9d66 100644
--- a/lib/CodeGen/CodeGenModule.h
+++ b/lib/CodeGen/CodeGenModule.h
@@ -252,6 +252,12 @@ public:
llvm::Constant *GetAddrOfFunction(GlobalDecl GD,
const llvm::Type *Ty = 0);
+ /// GenerateVtable - Generate the vtable for the given type.
+ llvm::Constant *GenerateVtable(const CXXRecordDecl *RD);
+
+ /// GenerateVTT - Generate the VTT for the given type.
+ llvm::Constant *GenerateVTT(const CXXRecordDecl *RD);
+
/// GenerateRtti - Generate the rtti information for the given type.
llvm::Constant *GenerateRtti(const CXXRecordDecl *RD);