summaryrefslogtreecommitdiffstats
path: root/clang/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-02-06 05:08:19 +0000
committerChris Lattner <sabre@nondot.org>2008-02-06 05:08:19 +0000
commit68be60694e198f9085b3dfd66e32574b622fd34b (patch)
tree65118ae6d96d6d66edfb8c79d56667d218e3fbcf /clang/CodeGen/CodeGenModule.cpp
parent8b945ee05832c1f99f79ae0066e3c18c0fdc6df0 (diff)
downloadbcm5719-llvm-68be60694e198f9085b3dfd66e32574b622fd34b.tar.gz
bcm5719-llvm-68be60694e198f9085b3dfd66e32574b622fd34b.zip
sink more of the type related code into CodeGenTypes.
llvm-svn: 46801
Diffstat (limited to 'clang/CodeGen/CodeGenModule.cpp')
-rw-r--r--clang/CodeGen/CodeGenModule.cpp21
1 files changed, 3 insertions, 18 deletions
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<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);
}
OpenPOWER on IntegriCloud