aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/clang/AST/ASTMutationListener.h3
-rw-r--r--include/clang/Serialization/ASTWriter.h1
-rw-r--r--lib/Sema/SemaDeclObjC.cpp7
-rw-r--r--lib/Serialization/ASTWriter.cpp7
4 files changed, 1 insertions, 17 deletions
diff --git a/include/clang/AST/ASTMutationListener.h b/include/clang/AST/ASTMutationListener.h
index 86a93153b9..551dffa747 100644
--- a/include/clang/AST/ASTMutationListener.h
+++ b/include/clang/AST/ASTMutationListener.h
@@ -77,9 +77,6 @@ public:
virtual void AddedObjCPropertyInClassExtension(const ObjCPropertyDecl *Prop,
const ObjCPropertyDecl *OrigProp,
const ObjCCategoryDecl *ClassExt) {}
-
- /// \brief The attributes list of a declaration was updated.
- virtual void UpdatedAttributeList(const Decl *D) {}
};
} // end namespace clang
diff --git a/include/clang/Serialization/ASTWriter.h b/include/clang/Serialization/ASTWriter.h
index ef2f1ada6f..34195847b4 100644
--- a/include/clang/Serialization/ASTWriter.h
+++ b/include/clang/Serialization/ASTWriter.h
@@ -691,7 +691,6 @@ public:
virtual void AddedObjCPropertyInClassExtension(const ObjCPropertyDecl *Prop,
const ObjCPropertyDecl *OrigProp,
const ObjCCategoryDecl *ClassExt);
- virtual void UpdatedAttributeList(const Decl *D);
};
/// \brief AST and semantic-analysis consumer that generates a
diff --git a/lib/Sema/SemaDeclObjC.cpp b/lib/Sema/SemaDeclObjC.cpp
index c4261ecbb8..3612e94371 100644
--- a/lib/Sema/SemaDeclObjC.cpp
+++ b/lib/Sema/SemaDeclObjC.cpp
@@ -713,13 +713,8 @@ Sema::ActOnForwardProtocolDeclaration(SourceLocation AtProtocolLoc,
PushOnScopeChains(PDecl, TUScope);
- if (attrList) {
+ if (attrList)
ProcessDeclAttributeList(TUScope, PDecl, attrList);
- if (PrevDecl) {
- if (ASTMutationListener *L = Context.getASTMutationListener())
- L->UpdatedAttributeList(PDecl);
- }
- }
if (PrevDecl)
mergeDeclAttributes(PDecl, PrevDecl);
diff --git a/lib/Serialization/ASTWriter.cpp b/lib/Serialization/ASTWriter.cpp
index e59a3d39d1..509200a696 100644
--- a/lib/Serialization/ASTWriter.cpp
+++ b/lib/Serialization/ASTWriter.cpp
@@ -4482,10 +4482,3 @@ void ASTWriter::AddedObjCPropertyInClassExtension(const ObjCPropertyDecl *Prop,
RewriteDecl(D);
}
-void ASTWriter::UpdatedAttributeList(const Decl *D) {
- assert(!WritingAST && "Already writing the AST!");
- if (!D->isFromASTFile())
- return; // Declaration not imported from PCH.
-
- RewriteDecl(D);
-}