From e1be2b16a3a24acda0b63c3dcb4ae3384fcdaf75 Mon Sep 17 00:00:00 2001 From: Mike Stump Date: Thu, 6 Aug 2009 21:49:36 +0000 Subject: Also generate the rtti field for virtual bases for vtables. Turn on rtti so we can properly test it. Refactor code a little. Still a work in progress. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78343 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CodeGenFunction.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/CodeGen/CodeGenFunction.h') diff --git a/lib/CodeGen/CodeGenFunction.h b/lib/CodeGen/CodeGenFunction.h index 1f0fad609f..fe52e99662 100644 --- a/lib/CodeGen/CodeGenFunction.h +++ b/lib/CodeGen/CodeGenFunction.h @@ -360,7 +360,10 @@ public: llvm::Constant *GenerateRtti(const CXXRecordDecl *RD); void GenerateVtableForBase(const CXXRecordDecl *RD, - std::vector &methods); + const CXXRecordDecl *Class, + llvm::Constant *rtti, + std::vector &methods, + bool isPrimary = false); llvm::Value *GenerateVtable(const CXXRecordDecl *RD); void EmitCtorPrologue(const CXXConstructorDecl *CD); -- cgit v1.2.3