[cfe-commits] r147413 - in /cfe/trunk: include/clang/AST/ASTMutationListener.h include/clang/Serialization/ASTWriter.h lib/Sema/SemaDeclObjC.cpp lib/Serialization/ASTWriter.cpp
Douglas Gregor
dgregor at apple.com
Sun Jan 1 12:33:25 PST 2012
Author: dgregor
Date: Sun Jan 1 14:33:24 2012
New Revision: 147413
URL: http://llvm.org/viewvc/llvm-project?rev=147413&view=rev
Log:
Eliminate ASTMutationListener::UpdatedAttributeList, which is no
longer needed now that we aren't back-patching ObjCProtocolDecls.
Modified:
cfe/trunk/include/clang/AST/ASTMutationListener.h
cfe/trunk/include/clang/Serialization/ASTWriter.h
cfe/trunk/lib/Sema/SemaDeclObjC.cpp
cfe/trunk/lib/Serialization/ASTWriter.cpp
Modified: cfe/trunk/include/clang/AST/ASTMutationListener.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/ASTMutationListener.h?rev=147413&r1=147412&r2=147413&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/ASTMutationListener.h (original)
+++ cfe/trunk/include/clang/AST/ASTMutationListener.h Sun Jan 1 14:33:24 2012
@@ -77,9 +77,6 @@
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
Modified: cfe/trunk/include/clang/Serialization/ASTWriter.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Serialization/ASTWriter.h?rev=147413&r1=147412&r2=147413&view=diff
==============================================================================
--- cfe/trunk/include/clang/Serialization/ASTWriter.h (original)
+++ cfe/trunk/include/clang/Serialization/ASTWriter.h Sun Jan 1 14:33:24 2012
@@ -691,7 +691,6 @@
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
Modified: cfe/trunk/lib/Sema/SemaDeclObjC.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDeclObjC.cpp?rev=147413&r1=147412&r2=147413&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDeclObjC.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDeclObjC.cpp Sun Jan 1 14:33:24 2012
@@ -713,13 +713,8 @@
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);
Modified: cfe/trunk/lib/Serialization/ASTWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Serialization/ASTWriter.cpp?rev=147413&r1=147412&r2=147413&view=diff
==============================================================================
--- cfe/trunk/lib/Serialization/ASTWriter.cpp (original)
+++ cfe/trunk/lib/Serialization/ASTWriter.cpp Sun Jan 1 14:33:24 2012
@@ -4482,10 +4482,3 @@
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);
-}
More information about the cfe-commits
mailing list