summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDeclObjC.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-11-12 21:07:52 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-11-12 21:07:52 +0000
commit0ca3a8b6efa8af8dd00bd28275ba01719c676d74 (patch)
tree4417a30f11c76607d3cf187bde858826d01ac266 /clang/lib/Sema/SemaDeclObjC.cpp
parentb97a4025fffa945bdf6cfb1d12f20930295156b3 (diff)
downloadbcm5719-llvm-0ca3a8b6efa8af8dd00bd28275ba01719c676d74.tar.gz
bcm5719-llvm-0ca3a8b6efa8af8dd00bd28275ba01719c676d74.zip
Add a method in ASTMutationListener for the last use of Decl's [is/set]ChangedSinceDeserialization
and remove them. llvm-svn: 144466
Diffstat (limited to 'clang/lib/Sema/SemaDeclObjC.cpp')
-rw-r--r--clang/lib/Sema/SemaDeclObjC.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaDeclObjC.cpp b/clang/lib/Sema/SemaDeclObjC.cpp
index 3d1f5bd0640..592d7c231e4 100644
--- a/clang/lib/Sema/SemaDeclObjC.cpp
+++ b/clang/lib/Sema/SemaDeclObjC.cpp
@@ -21,6 +21,7 @@
#include "clang/AST/ExprObjC.h"
#include "clang/AST/ASTContext.h"
#include "clang/AST/DeclObjC.h"
+#include "clang/AST/ASTMutationListener.h"
#include "clang/Basic/SourceManager.h"
#include "clang/Sema/DeclSpec.h"
#include "llvm/ADT/DenseSet.h"
@@ -701,8 +702,10 @@ Sema::ActOnForwardProtocolDeclaration(SourceLocation AtProtocolLoc,
}
if (attrList) {
ProcessDeclAttributeList(TUScope, PDecl, attrList);
- if (!isNew)
- PDecl->setChangedSinceDeserialization(true);
+ if (!isNew) {
+ if (ASTMutationListener *L = Context.getASTMutationListener())
+ L->UpdatedAttributeList(PDecl);
+ }
}
Protocols.push_back(PDecl);
ProtoLocs.push_back(IdentList[i].second);
OpenPOWER on IntegriCloud