]> granicus.if.org Git - clang/commitdiff
Eliminate ASTMutationListener::UpdatedAttributeList, which is no
authorDouglas Gregor <dgregor@apple.com>
Sun, 1 Jan 2012 20:33:24 +0000 (20:33 +0000)
committerDouglas Gregor <dgregor@apple.com>
Sun, 1 Jan 2012 20:33:24 +0000 (20:33 +0000)
longer needed now that we aren't back-patching ObjCProtocolDecls.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147413 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/ASTMutationListener.h
include/clang/Serialization/ASTWriter.h
lib/Sema/SemaDeclObjC.cpp
lib/Serialization/ASTWriter.cpp

index 86a93153b9050efc6cc65b5ac94d2ab2453fd8b9..551dffa747ee8c4d03c1a78c026d3bb2e160361a 100644 (file)
@@ -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
index ef2f1ada6f2b615ab54aa03a40ca418d6fa87935..34195847b4b14090b75bfa11d430076ffb1403d2 100644 (file)
@@ -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
index c4261ecbb81196a0b7233c533d31138abf309f39..3612e94371bd14aec6d8ca7deb794b49e47fa696 100644 (file)
@@ -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);
index e59a3d39d1658742a66e3afb6f7d3f24e772c89a..509200a696e5607fa68e7c05d66754cc64d8e8c3 100644 (file)
@@ -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);
-}