diff options
| author | Douglas Gregor <dgregor@apple.com> | 2012-01-01 20:33:24 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2012-01-01 20:33:24 +0000 |
| commit | 42ff1bb922ba84dea77d06927a585b965ffcdc65 (patch) | |
| tree | 673583c1daee81f346ca0997e462616463e1e182 | |
| parent | 32c17577303d28236489c9a6be250de376578636 (diff) | |
| download | bcm5719-llvm-42ff1bb922ba84dea77d06927a585b965ffcdc65.tar.gz bcm5719-llvm-42ff1bb922ba84dea77d06927a585b965ffcdc65.zip | |
Eliminate ASTMutationListener::UpdatedAttributeList, which is no
longer needed now that we aren't back-patching ObjCProtocolDecls.
llvm-svn: 147413
| -rw-r--r-- | clang/include/clang/AST/ASTMutationListener.h | 3 | ||||
| -rw-r--r-- | clang/include/clang/Serialization/ASTWriter.h | 1 | ||||
| -rw-r--r-- | clang/lib/Sema/SemaDeclObjC.cpp | 7 | ||||
| -rw-r--r-- | clang/lib/Serialization/ASTWriter.cpp | 7 |
4 files changed, 1 insertions, 17 deletions
diff --git a/clang/include/clang/AST/ASTMutationListener.h b/clang/include/clang/AST/ASTMutationListener.h index 86a93153b90..551dffa747e 100644 --- a/clang/include/clang/AST/ASTMutationListener.h +++ b/clang/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/clang/include/clang/Serialization/ASTWriter.h b/clang/include/clang/Serialization/ASTWriter.h index ef2f1ada6f2..34195847b4b 100644 --- a/clang/include/clang/Serialization/ASTWriter.h +++ b/clang/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/clang/lib/Sema/SemaDeclObjC.cpp b/clang/lib/Sema/SemaDeclObjC.cpp index c4261ecbb81..3612e94371b 100644 --- a/clang/lib/Sema/SemaDeclObjC.cpp +++ b/clang/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/clang/lib/Serialization/ASTWriter.cpp b/clang/lib/Serialization/ASTWriter.cpp index e59a3d39d16..509200a696e 100644 --- a/clang/lib/Serialization/ASTWriter.cpp +++ b/clang/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); -} |

