diff options
author | Chris Lattner <sabre@nondot.org> | 2008-02-06 05:08:19 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-02-06 05:08:19 +0000 |
commit | c5b8806cda286cf41866176ef98011fdaa68da01 (patch) | |
tree | f196dd8e2f678dddc4c34878db50dc360fc1258d /CodeGen/CodeGenModule.cpp | |
parent | 352ffde2f04183083fc00427df81d1b25f8c750c (diff) |
sink more of the type related code into CodeGenTypes.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46801 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'CodeGen/CodeGenModule.cpp')
-rw-r--r-- | CodeGen/CodeGenModule.cpp | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/CodeGen/CodeGenModule.cpp b/CodeGen/CodeGenModule.cpp index eff26f91b1..e1aec690e9 100644 --- a/CodeGen/CodeGenModule.cpp +++ b/CodeGen/CodeGenModule.cpp @@ -261,24 +261,9 @@ void CodeGenModule::EmitGlobalVarDeclarator(const FileVarDecl *D) { EmitGlobalVar(D); } -void CodeGenModule::EmitType(const TypeDecl *D) { - if (isa<TypedefDecl>(D)) { - // TODO: Emit debug info. - return; - } - - assert(!isa<ObjCInterfaceDecl>(D) && "FIXME: ADD OBJC SUPPORT"); - - // This must be a tag decl. - const TagDecl *TD = cast<TagDecl>(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<TagDecl *>(TD)); - const llvm::Type *T = Types.ConvertType(NewTy); - if (isa<llvm::OpaqueType>(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); } |