summaryrefslogtreecommitdiffstats
path: root/clang/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
commitd846d0825be204cae03fee343cfca73ac42ad505 (patch)
tree2752aad6f7ac617988957a540e3e68fa101ed8b4 /clang/lib/CodeGen/CodeGenModule.h
parent1559bedcc7f4b291a0d4797890383e0ddb573dc8 (diff)
downloadbcm5719-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.h6
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);
OpenPOWER on IntegriCloud