From 380dd759b33fd059b1aa7dbd85f8e66ca32f7bdc Mon Sep 17 00:00:00 2001 From: Mike Stump Date: Tue, 10 Nov 2009 07:44:33 +0000 Subject: 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 --- lib/CodeGen/CodeGenModule.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/CodeGen/CodeGenModule.h') 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); -- cgit v1.2.3-70-g09d2