diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2016-02-09 19:07:16 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2016-02-09 19:07:16 +0000 |
commit | 4c3131d6ebf74a176e10ae51d270e8fae0b01854 (patch) | |
tree | 11e4d3451152ca648011be9aa38db33f0de896ba /clang/lib/Frontend/MultiplexConsumer.cpp | |
parent | c382abfd73d10aeb5bcbfbad5db3b4b7fdd0702d (diff) | |
download | bcm5719-llvm-4c3131d6ebf74a176e10ae51d270e8fae0b01854.tar.gz bcm5719-llvm-4c3131d6ebf74a176e10ae51d270e8fae0b01854.zip |
[Frontend] Handle ASTConsumer::shouldSkipFunctionBody via the MultiplexConsumer.
llvm-svn: 260252
Diffstat (limited to 'clang/lib/Frontend/MultiplexConsumer.cpp')
-rw-r--r-- | clang/lib/Frontend/MultiplexConsumer.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/lib/Frontend/MultiplexConsumer.cpp b/clang/lib/Frontend/MultiplexConsumer.cpp index 15f876b7bdf..12cd86af83c 100644 --- a/clang/lib/Frontend/MultiplexConsumer.cpp +++ b/clang/lib/Frontend/MultiplexConsumer.cpp @@ -360,6 +360,13 @@ void MultiplexConsumer::PrintStats() { Consumer->PrintStats(); } +bool MultiplexConsumer::shouldSkipFunctionBody(Decl *D) { + bool Skip = true; + for (auto &Consumer : Consumers) + Skip = Skip && Consumer->shouldSkipFunctionBody(D); + return Skip; +} + void MultiplexConsumer::InitializeSema(Sema &S) { for (auto &Consumer : Consumers) if (SemaConsumer *SC = dyn_cast<SemaConsumer>(Consumer.get())) |