From 68be60694e198f9085b3dfd66e32574b622fd34b Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 6 Feb 2008 05:08:19 +0000 Subject: sink more of the type related code into CodeGenTypes. llvm-svn: 46801 --- clang/CodeGen/CodeGenModule.cpp | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) (limited to 'clang/CodeGen/CodeGenModule.cpp') diff --git a/clang/CodeGen/CodeGenModule.cpp b/clang/CodeGen/CodeGenModule.cpp index eff26f91b12..e1aec690e9d 100644 --- a/clang/CodeGen/CodeGenModule.cpp +++ b/clang/CodeGen/CodeGenModule.cpp @@ -261,24 +261,9 @@ void CodeGenModule::EmitGlobalVarDeclarator(const FileVarDecl *D) { EmitGlobalVar(D); } -void CodeGenModule::EmitType(const TypeDecl *D) { - if (isa(D)) { - // TODO: Emit debug info. - return; - } - - assert(!isa(D) && "FIXME: ADD OBJC SUPPORT"); - - // This must be a tag decl. - const TagDecl *TD = cast(D); - - // Get the LLVM type for this TagDecl. If it is non-opaque or if this decl - // is still a forward declaration, just return. - QualType NewTy = Context.getTagDeclType(const_cast(TD)); - const llvm::Type *T = Types.ConvertType(NewTy); - if (isa(T) && TD->isDefinition()) - // Make sure that this type is translated. - Types.ForceTypeCompilation(NewTy); +void CodeGenModule::UpdateCompletedType(const TagDecl *TD) { + // Make sure that this type is translated. + Types.UpdateCompletedType(TD); } -- cgit v1.2.3