diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-03-31 09:07:15 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-03-31 09:07:15 +0000 |
| commit | 05aa49128ccb46276265639dc9df16d5478e963c (patch) | |
| tree | 2789d14c2472232f0b8061d648c4dc1a7adb8f09 /clang/lib/CodeGen | |
| parent | 733dc19be6bb1c2e9e575ae72a6264d03e03eb18 (diff) | |
| download | bcm5719-llvm-05aa49128ccb46276265639dc9df16d5478e963c.tar.gz bcm5719-llvm-05aa49128ccb46276265639dc9df16d5478e963c.zip | |
remove a dead prototype
llvm-svn: 68105
Diffstat (limited to 'clang/lib/CodeGen')
| -rw-r--r-- | clang/lib/CodeGen/CodeGenTypes.cpp | 11 | ||||
| -rw-r--r-- | clang/lib/CodeGen/CodeGenTypes.h | 2 |
2 files changed, 6 insertions, 7 deletions
diff --git a/clang/lib/CodeGen/CodeGenTypes.cpp b/clang/lib/CodeGen/CodeGenTypes.cpp index 06fee78e2ea..d5daad51925 100644 --- a/clang/lib/CodeGen/CodeGenTypes.cpp +++ b/clang/lib/CodeGen/CodeGenTypes.cpp @@ -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. diff --git a/clang/lib/CodeGen/CodeGenTypes.h b/clang/lib/CodeGen/CodeGenTypes.h index bdf0ac6d025..b408ff66a6a 100644 --- a/clang/lib/CodeGen/CodeGenTypes.h +++ b/clang/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. |

