]> granicus.if.org Git - clang/commitdiff
remove a dead prototype
authorChris Lattner <sabre@nondot.org>
Tue, 31 Mar 2009 09:07:15 +0000 (09:07 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 31 Mar 2009 09:07:15 +0000 (09:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68105 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CodeGenTypes.cpp
lib/CodeGen/CodeGenTypes.h

index 06fee78e2ea2b2979afa822890be87792df5fc4f..d5daad51925fb63953ddd14f378085531a372ec9 100644 (file)
@@ -333,16 +333,17 @@ const llvm::Type *CodeGenTypes::ConvertNewType(QualType T) {
     return
       ConvertTypeRecursive(QualType(cast<ExtQualType>(Ty).getBaseType(), 0));
 
+  case Type::ObjCQualifiedInterface: {
+    // Lower foo<P1,P2> just like foo.
+    ObjCInterfaceDecl *ID = cast<ObjCQualifiedInterfaceType>(Ty).getDecl();
+    return ConvertTypeRecursive(Context.getObjCInterfaceType(ID));
+  }
+      
   case Type::ObjCInterface: {
     ObjCInterfaceDecl *ID = cast<ObjCInterfaceType>(Ty).getDecl();
     return ConvertTagDeclType(Context.addRecordToClass(ID));
   }
       
-  case Type::ObjCQualifiedInterface: {
-    ObjCInterfaceDecl *ID = cast<ObjCQualifiedInterfaceType>(Ty).getDecl();
-    return ConvertTypeRecursive(Context.getObjCInterfaceType(ID));
-  }
-
   case Type::ObjCQualifiedId:
   case Type::ObjCQualifiedClass:
     // Protocols don't influence the LLVM type.
index bdf0ac6d0255185929291ba901a8f05ebe9c9e03..b408ff66a6a84f106f3decc5b3d5a18d77f8acf7 100644 (file)
@@ -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.