Don't bother rewriting an Objective-C class or protocol declaration to the module file when we've merely added a definition

llvm-svn: 147414
This commit is contained in:
Douglas Gregor 2012-01-01 20:35:33 +00:00
parent 42ff1bb922
commit c51118238c
1 changed files with 0 additions and 2 deletions

View File

@ -4428,8 +4428,6 @@ void ASTWriter::AddedObjCCategoryToInterface(const ObjCCategoryDecl *CatD,
void ASTWriter::CompletedObjCForwardRef(const ObjCContainerDecl *D) {
assert(!WritingAST && "Already writing the AST!");
if (D->isFromASTFile())
RewriteDecl(D);
if (const ObjCInterfaceDecl *ID = dyn_cast<ObjCInterfaceDecl>(D)) {
for (ObjCInterfaceDecl::redecl_iterator I = ID->redecls_begin(),