diff options
author | Mike Stump <mrs@apple.com> | 2009-11-19 01:08:19 +0000 |
---|---|---|
committer | Mike Stump <mrs@apple.com> | 2009-11-19 01:08:19 +0000 |
commit | 58588943a8283baf17815d56275bdb381560970c (patch) | |
tree | a04d6fd5ec7c161846e2f768a7a842d483df8002 /lib/CodeGen/CGVtable.cpp | |
parent | 64bdce3f02091b0a4e1528d690495970c1249803 (diff) |
Improve instantiation control for rtti data and allow key functions to
instantiate a class. WIP.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89289 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGVtable.cpp')
-rw-r--r-- | lib/CodeGen/CGVtable.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/CodeGen/CGVtable.cpp b/lib/CodeGen/CGVtable.cpp index a726fec571..d107edcbd7 100644 --- a/lib/CodeGen/CGVtable.cpp +++ b/lib/CodeGen/CGVtable.cpp @@ -1021,6 +1021,12 @@ llvm::Constant *CodeGenModule::GenerateVTT(const CXXRecordDecl *RD) { return llvm::ConstantExpr::getBitCast(vtt, Ptr8Ty); } +void CGVtableInfo::GenerateClassData(const CXXRecordDecl *RD) { + Vtables[RD] = CGM.GenerateVtable(RD, RD); + CGM.GenerateRtti(RD); + CGM.GenerateVTT(RD); +} + llvm::Constant *CGVtableInfo::getVtable(const CXXRecordDecl *RD) { llvm::Constant *&vtbl = Vtables[RD]; if (vtbl) |