From 1559d67b7a68c6ae91431996842fd7777fbd72ac Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Tue, 21 Jul 2009 00:06:20 +0000 Subject: Remove the ObjCCategoryImpls vector from Sema class. Use ObjCInterfaceDecl::getCategoryClassMethod() and ObjCInterfaceDecl::getCategoryInstanceMethod() for the same functionality. llvm-svn: 76510 --- clang/lib/Frontend/PCHReader.cpp | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'clang/lib/Frontend/PCHReader.cpp') diff --git a/clang/lib/Frontend/PCHReader.cpp b/clang/lib/Frontend/PCHReader.cpp index d3c746501a0..f21fc625224 100644 --- a/clang/lib/Frontend/PCHReader.cpp +++ b/clang/lib/Frontend/PCHReader.cpp @@ -1364,14 +1364,6 @@ PCHReader::ReadPCHBlock() { ExtVectorDecls.swap(Record); break; - case pch::OBJC_CATEGORY_IMPLEMENTATIONS: - if (!ObjCCategoryImpls.empty()) { - Error("duplicate OBJC_CATEGORY_IMPLEMENTATIONS record in PCH file"); - return Failure; - } - ObjCCategoryImpls.swap(Record); - break; - case pch::ORIGINAL_FILE_NAME: OriginalFileName.assign(BlobStart, BlobLen); MaybeAddSystemRootToFilename(OriginalFileName); @@ -2210,13 +2202,6 @@ void PCHReader::InitializeSema(Sema &S) { for (unsigned I = 0, N = ExtVectorDecls.size(); I != N; ++I) SemaObj->ExtVectorDecls.push_back( cast(GetDecl(ExtVectorDecls[I]))); - - // If there were any Objective-C category implementations, - // deserialize them and add them to Sema's vector of such - // definitions. - for (unsigned I = 0, N = ObjCCategoryImpls.size(); I != N; ++I) - SemaObj->ObjCCategoryImpls.push_back( - cast(GetDecl(ObjCCategoryImpls[I]))); } IdentifierInfo* PCHReader::get(const char *NameStart, const char *NameEnd) { -- cgit v1.2.3