summaryrefslogtreecommitdiffstats
path: root/clang/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
commitc51118238c9a05a3113ce0057bb10169b583a6c5 (patch)
tree71006715e9a6bc348b2d32c30830d1e509e6b397 /clang/lib/Serialization/ASTWriter.cpp
parent42ff1bb922ba84dea77d06927a585b965ffcdc65 (diff)
downloadbcm5719-llvm-c51118238c9a05a3113ce0057bb10169b583a6c5.tar.gz
bcm5719-llvm-c51118238c9a05a3113ce0057bb10169b583a6c5.zip
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
Diffstat (limited to 'clang/lib/Serialization/ASTWriter.cpp')
-rw-r--r--clang/lib/Serialization/ASTWriter.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/clang/lib/Serialization/ASTWriter.cpp b/clang/lib/Serialization/ASTWriter.cpp
index 509200a696e..7a3916f91bc 100644
--- a/clang/lib/Serialization/ASTWriter.cpp
+++ b/clang/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(),
OpenPOWER on IntegriCloud