summaryrefslogtreecommitdiffstats
path: root/lib/Serialization/ASTWriter.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2012-01-01 20:35:33 +0000
committerDouglas Gregor <dgregor@apple.com>2012-01-01 20:35:33 +0000
commita6387f3b447015073192f1e1cafec3ebd0294c8c (patch)
treeaf3496c82b976374a84b891bb20d3d1d9ef765d8 /lib/Serialization/ASTWriter.cpp
parent3937f87e53b3ee0c8da93536f48f6f96c006309d (diff)
Don't bother rewriting an Objective-C class or protocol declaration to the module file when we've merely added a definition
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147414 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Serialization/ASTWriter.cpp')
-rw-r--r--lib/Serialization/ASTWriter.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/Serialization/ASTWriter.cpp b/lib/Serialization/ASTWriter.cpp
index 509200a696..7a3916f91b 100644
--- a/lib/Serialization/ASTWriter.cpp
+++ b/lib/Serialization/ASTWriter.cpp
@@ -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(),