[cfe-commits] r68105 - in /cfe/trunk/lib/CodeGen: CodeGenTypes.cpp CodeGenTypes.h
Chris Lattner
sabre at nondot.org
Tue Mar 31 02:07:19 PDT 2009
Author: lattner
Date: Tue Mar 31 04:07:15 2009
New Revision: 68105
URL: http://llvm.org/viewvc/llvm-project?rev=68105&view=rev
Log:
remove a dead prototype
Modified:
cfe/trunk/lib/CodeGen/CodeGenTypes.cpp
cfe/trunk/lib/CodeGen/CodeGenTypes.h
Modified: cfe/trunk/lib/CodeGen/CodeGenTypes.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenTypes.cpp?rev=68105&r1=68104&r2=68105&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenTypes.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenTypes.cpp Tue Mar 31 04:07:15 2009
@@ -333,16 +333,17 @@
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.
Modified: cfe/trunk/lib/CodeGen/CodeGenTypes.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenTypes.h?rev=68105&r1=68104&r2=68105&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenTypes.h (original)
+++ cfe/trunk/lib/CodeGen/CodeGenTypes.h Tue Mar 31 04:07:15 2009
@@ -153,8 +153,6 @@
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.
More information about the cfe-commits
mailing list