diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/AST/ASTContext.cpp | 4 | ||||
-rw-r--r-- | lib/AST/Type.cpp | 3 | ||||
-rw-r--r-- | lib/CodeGen/CGDebugInfo.cpp | 1 | ||||
-rw-r--r-- | lib/CodeGen/CodeGenTypes.cpp | 1 | ||||
-rw-r--r-- | lib/Frontend/PCHReader.cpp | 6 | ||||
-rw-r--r-- | lib/Frontend/PCHWriter.cpp | 8 | ||||
-rw-r--r-- | lib/Sema/SemaTemplateInstantiate.cpp | 8 |
7 files changed, 1 insertions, 30 deletions
diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp index 02bedcaf78..1e553e3aba 100644 --- a/lib/AST/ASTContext.cpp +++ b/lib/AST/ASTContext.cpp @@ -431,7 +431,6 @@ ASTContext::getTypeInfo(const Type *T) { // alignment requirements: getPointerInfo should take an AddrSpace. return getTypeInfo(QualType(cast<ExtQualType>(T)->getBaseType(), 0)); case Type::ObjCQualifiedId: - case Type::ObjCQualifiedClass: case Type::ObjCQualifiedInterface: Width = Target.getPointerWidth(0); Align = Target.getPointerAlign(0); @@ -3136,9 +3135,6 @@ QualType ASTContext::mergeTypes(QualType LHS, QualType RHS) { case Type::FixedWidthInt: // Distinct fixed-width integers are not compatible. return QualType(); - case Type::ObjCQualifiedClass: - // Distinct qualified classes are not compatible. - return QualType(); case Type::ExtQual: // FIXME: ExtQual types can be compatible even if they're not // identical! diff --git a/lib/AST/Type.cpp b/lib/AST/Type.cpp index 97245c699a..7daa20704b 100644 --- a/lib/AST/Type.cpp +++ b/lib/AST/Type.cpp @@ -768,8 +768,7 @@ bool Type::isScalarType() const { isa<BlockPointerType>(CanonicalType) || isa<MemberPointerType>(CanonicalType) || isa<ComplexType>(CanonicalType) || - isa<ObjCQualifiedIdType>(CanonicalType) || - isa<ObjCQualifiedClassType>(CanonicalType); + isa<ObjCQualifiedIdType>(CanonicalType); } /// \brief Determines whether the type is a C++ aggregate type or C diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp index 1c6043b7d6..ae8214e24a 100644 --- a/lib/CodeGen/CGDebugInfo.cpp +++ b/lib/CodeGen/CGDebugInfo.cpp @@ -582,7 +582,6 @@ llvm::DIType CGDebugInfo::getOrCreateType(QualType Ty, case Type::MemberPointer: case Type::TemplateSpecialization: case Type::QualifiedName: - case Type::ObjCQualifiedClass: // Unsupported types return llvm::DIType(); diff --git a/lib/CodeGen/CodeGenTypes.cpp b/lib/CodeGen/CodeGenTypes.cpp index 5d98b453ac..24f4885970 100644 --- a/lib/CodeGen/CodeGenTypes.cpp +++ b/lib/CodeGen/CodeGenTypes.cpp @@ -378,7 +378,6 @@ const llvm::Type *CodeGenTypes::ConvertNewType(QualType T) { } case Type::ObjCQualifiedId: - case Type::ObjCQualifiedClass: // Protocols don't influence the LLVM type. return ConvertTypeRecursive(Context.getObjCIdType()); diff --git a/lib/Frontend/PCHReader.cpp b/lib/Frontend/PCHReader.cpp index 3a311d49c2..8e1118cb7f 100644 --- a/lib/Frontend/PCHReader.cpp +++ b/lib/Frontend/PCHReader.cpp @@ -2103,13 +2103,7 @@ QualType PCHReader::ReadTypeRecord(uint64_t Offset) { Protos.push_back(cast<ObjCProtocolDecl>(GetDecl(Record[Idx++]))); return Context.getObjCQualifiedIdType(&Protos[0], NumProtos); } - - case pch::TYPE_OBJC_QUALIFIED_CLASS: - // FIXME: Deserialize ObjCQualifiedClassType - assert(false && "Cannot de-serialize ObjC qualified class types yet"); - return QualType(); } - // Suppress a GCC warning return QualType(); } diff --git a/lib/Frontend/PCHWriter.cpp b/lib/Frontend/PCHWriter.cpp index 760578164b..f34323c160 100644 --- a/lib/Frontend/PCHWriter.cpp +++ b/lib/Frontend/PCHWriter.cpp @@ -228,14 +228,6 @@ void PCHTypeWriter::VisitObjCQualifiedIdType(const ObjCQualifiedIdType *T) { Code = pch::TYPE_OBJC_QUALIFIED_ID; } -void -PCHTypeWriter::VisitObjCQualifiedClassType(const ObjCQualifiedClassType *T) { - Record.push_back(T->getNumProtocols()); - for (unsigned I = 0, N = T->getNumProtocols(); I != N; ++I) - Writer.AddDeclRef(T->getProtocols(I), Record); - Code = pch::TYPE_OBJC_QUALIFIED_CLASS; -} - //===----------------------------------------------------------------------===// // Declaration serialization //===----------------------------------------------------------------------===// diff --git a/lib/Sema/SemaTemplateInstantiate.cpp b/lib/Sema/SemaTemplateInstantiate.cpp index 1a67fd1248..bd385d355b 100644 --- a/lib/Sema/SemaTemplateInstantiate.cpp +++ b/lib/Sema/SemaTemplateInstantiate.cpp @@ -540,14 +540,6 @@ InstantiateObjCQualifiedIdType(const ObjCQualifiedIdType *T, return QualType(); } -QualType -TemplateTypeInstantiator:: -InstantiateObjCQualifiedClassType(const ObjCQualifiedClassType *T, - unsigned Quals) const { - assert(false && "Objective-C types cannot be dependent"); - return QualType(); -} - /// \brief The actual implementation of Sema::InstantiateType(). QualType TemplateTypeInstantiator::Instantiate(QualType T) const { // If T is not a dependent type, there is nothing to do. |