[cfe-commits] r147414 - /cfe/trunk/lib/Serialization/ASTWriter.cpp
Douglas Gregor
dgregor at apple.com
Sun Jan 1 12:35:33 PST 2012
Author: dgregor
Date: Sun Jan 1 14:35:33 2012
New Revision: 147414
URL: http://llvm.org/viewvc/llvm-project?rev=147414&view=rev
Log:
Don't bother rewriting an Objective-C class or protocol declaration to the module file when we've merely added a definition
Modified:
cfe/trunk/lib/Serialization/ASTWriter.cpp
Modified: cfe/trunk/lib/Serialization/ASTWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Serialization/ASTWriter.cpp?rev=147414&r1=147413&r2=147414&view=diff
==============================================================================
--- cfe/trunk/lib/Serialization/ASTWriter.cpp (original)
+++ cfe/trunk/lib/Serialization/ASTWriter.cpp Sun Jan 1 14:35:33 2012
@@ -4428,8 +4428,6 @@
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(),
More information about the cfe-commits
mailing list