From: Chris Lattner Date: Tue, 31 Mar 2009 09:07:15 +0000 (+0000) Subject: remove a dead prototype X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=636efb6ee4382e6fc16724014e9cf70dbeb37c31;p=clang remove a dead prototype git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68105 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CodeGenTypes.cpp b/lib/CodeGen/CodeGenTypes.cpp index 06fee78e2e..d5daad5192 100644 --- a/lib/CodeGen/CodeGenTypes.cpp +++ b/lib/CodeGen/CodeGenTypes.cpp @@ -333,16 +333,17 @@ const llvm::Type *CodeGenTypes::ConvertNewType(QualType T) { return ConvertTypeRecursive(QualType(cast(Ty).getBaseType(), 0)); + case Type::ObjCQualifiedInterface: { + // Lower foo just like foo. + ObjCInterfaceDecl *ID = cast(Ty).getDecl(); + return ConvertTypeRecursive(Context.getObjCInterfaceType(ID)); + } + case Type::ObjCInterface: { ObjCInterfaceDecl *ID = cast(Ty).getDecl(); return ConvertTagDeclType(Context.addRecordToClass(ID)); } - case Type::ObjCQualifiedInterface: { - ObjCInterfaceDecl *ID = cast(Ty).getDecl(); - return ConvertTypeRecursive(Context.getObjCInterfaceType(ID)); - } - case Type::ObjCQualifiedId: case Type::ObjCQualifiedClass: // Protocols don't influence the LLVM type. diff --git a/lib/CodeGen/CodeGenTypes.h b/lib/CodeGen/CodeGenTypes.h index bdf0ac6d02..b408ff66a6 100644 --- a/lib/CodeGen/CodeGenTypes.h +++ b/lib/CodeGen/CodeGenTypes.h @@ -153,8 +153,6 @@ public: bool IsVariadic); const CGRecordLayout *getCGRecordLayout(const TagDecl*) const; - /// Returns a StructType representing an Objective-C object - const llvm::Type *ConvertObjCInterfaceToStruct(const ObjCInterfaceDecl *OID); /// getLLVMFieldNo - Return llvm::StructType element number /// that corresponds to the field FD.