From 278048971c8b2e153d305ee8917618c9bf38b1c3 Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Thu, 15 Aug 2013 20:49:17 +0000 Subject: DebugInfo: Unify & optimize the lazy addition of record types Rather than going through the whole getOrCreateType machinery to manifest a type, cut straight to the implementation because we know we have to do work. While the previous implementation was sufficient for the two cases (completeness and required completeness) we have already (the general machinery could inspect the type for those attributes & go down the full definition path), a pending change (to emit info for types when we emit their vtables) won't have that luxury & we'll need to force the creation rather than relying on the general purpose routine. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188486 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/ModuleBuilder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/CodeGen/ModuleBuilder.cpp') diff --git a/lib/CodeGen/ModuleBuilder.cpp b/lib/CodeGen/ModuleBuilder.cpp index c6d40330e0..a33b3a38fb 100644 --- a/lib/CodeGen/ModuleBuilder.cpp +++ b/lib/CodeGen/ModuleBuilder.cpp @@ -100,7 +100,7 @@ namespace { virtual void HandleTagDeclRequiredDefinition(const TagDecl *D) LLVM_OVERRIDE { if (CodeGen::CGDebugInfo *DI = Builder->getModuleDebugInfo()) if (const RecordDecl *RD = dyn_cast(D)) - DI->completeFwdDecl(*RD); + DI->completeRequiredType(RD); } virtual void HandleTranslationUnit(ASTContext &Ctx) { -- cgit v1.2.3