diff options
author | Mike Stump <mrs@apple.com> | 2009-11-10 07:44:33 +0000 |
---|---|---|
committer | Mike Stump <mrs@apple.com> | 2009-11-10 07:44:33 +0000 |
commit | d846d0825be204cae03fee343cfca73ac42ad505 (patch) | |
tree | 2752aad6f7ac617988957a540e3e68fa101ed8b4 /clang/lib/CodeGen/CodeGenModule.h | |
parent | 1559bedcc7f4b291a0d4797890383e0ddb573dc8 (diff) | |
download | bcm5719-llvm-d846d0825be204cae03fee343cfca73ac42ad505.tar.gz bcm5719-llvm-d846d0825be204cae03fee343cfca73ac42ad505.zip |
Add vtable caching to prevent multiple vtables for the same class from
being generated.
Add the most derived vtable pointer to the VTT.
llvm-svn: 86671
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h index b09f52cf2bf..6c433d9d66b 100644 --- a/clang/lib/CodeGen/CodeGenModule.h +++ b/clang/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); |