From 3e62d002713b87fbfe5c472a3605adb3914b4c8b 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. llvm-svn: 78343 --- clang/lib/CodeGen/CodeGenFunction.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'clang/lib/CodeGen/CodeGenFunction.h') diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index 1f0fad609f5..fe52e996621 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/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