summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2015-05-15 02:34:32 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2015-05-15 02:34:32 +0000
commit4caa449adea77d88307e03f0284494c9c33f8dd7 (patch)
tree8db88112860bca5b8213e14c9d80778bb5078b3f /clang/lib/Frontend
parent9953f0886bd37abc37622857c530deec29f097aa (diff)
downloadbcm5719-llvm-4caa449adea77d88307e03f0284494c9c33f8dd7.tar.gz
bcm5719-llvm-4caa449adea77d88307e03f0284494c9c33f8dd7.zip
Refactor: when exposing a definition in some module, provide listeners with the
module rather than requiring them to work it out themselves. llvm-svn: 237416
Diffstat (limited to 'clang/lib/Frontend')
-rw-r--r--clang/lib/Frontend/MultiplexConsumer.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/clang/lib/Frontend/MultiplexConsumer.cpp b/clang/lib/Frontend/MultiplexConsumer.cpp
index 1512b5e6ba9..219e9492d28 100644
--- a/clang/lib/Frontend/MultiplexConsumer.cpp
+++ b/clang/lib/Frontend/MultiplexConsumer.cpp
@@ -111,8 +111,7 @@ public:
const ObjCCategoryDecl *ClassExt) override;
void DeclarationMarkedUsed(const Decl *D) override;
void DeclarationMarkedOpenMPThreadPrivate(const Decl *D) override;
- void RedefinedHiddenDefinition(const NamedDecl *D,
- SourceLocation Loc) override;
+ void RedefinedHiddenDefinition(const NamedDecl *D, Module *M) override;
private:
std::vector<ASTMutationListener*> Listeners;
@@ -196,10 +195,10 @@ void MultiplexASTMutationListener::DeclarationMarkedOpenMPThreadPrivate(
for (size_t i = 0, e = Listeners.size(); i != e; ++i)
Listeners[i]->DeclarationMarkedOpenMPThreadPrivate(D);
}
-void MultiplexASTMutationListener::RedefinedHiddenDefinition(
- const NamedDecl *D, SourceLocation Loc) {
+void MultiplexASTMutationListener::RedefinedHiddenDefinition(const NamedDecl *D,
+ Module *M) {
for (auto *L : Listeners)
- L->RedefinedHiddenDefinition(D, Loc);
+ L->RedefinedHiddenDefinition(D, M);
}
} // end namespace clang
OpenPOWER on IntegriCloud