diff options
author | Mike Stump <mrs@apple.com> | 2009-11-14 23:32:21 +0000 |
---|---|---|
committer | Mike Stump <mrs@apple.com> | 2009-11-14 23:32:21 +0000 |
commit | cbcd4e5d9d4c6148d47c6c05038b295c1eb037b2 (patch) | |
tree | 0e7ab0d51b24e8df24e4661f623d46d6faff46bd /lib/CodeGen/CGVtable.cpp | |
parent | 0e489ea67da94ca5ba3df67cab4f0da61d56367d (diff) |
Finisgh off rest of class_type_info rtti generation.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@88823 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGVtable.cpp')
-rw-r--r-- | lib/CodeGen/CGVtable.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/CGVtable.cpp b/lib/CodeGen/CGVtable.cpp index 3c718b5fe3..efca4f2fbe 100644 --- a/lib/CodeGen/CGVtable.cpp +++ b/lib/CodeGen/CGVtable.cpp @@ -80,7 +80,7 @@ public: const CXXRecordDecl *l, uint64_t lo, CodeGenModule &cgm) : methods(meth), Class(c), LayoutClass(l), LayoutOffset(lo), BLayout(cgm.getContext().getASTRecordLayout(l)), - rtti(cgm.GenerateRtti(c)), VMContext(cgm.getModule().getContext()), + rtti(cgm.GenerateRttiRef(c)), VMContext(cgm.getModule().getContext()), CGM(cgm), AddressPoints(*new llvm::DenseMap<CtorVtable_t, int64_t>), Extern(true), LLVMPointerWidth(cgm.getContext().Target.getPointerWidth(0)) { @@ -1022,6 +1022,7 @@ llvm::Constant *CGVtableInfo::getVtable(const CXXRecordDecl *RD) { if (vtbl) return vtbl; vtbl = CGM.GenerateVtable(RD, RD); + CGM.GenerateRtti(RD); CGM.GenerateVTT(RD); return vtbl; } |