diff options
author | Nico Weber <nicolasweber@gmx.de> | 2015-01-15 04:07:35 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2015-01-15 04:07:35 +0000 |
commit | b6a5d05a8a6e9064b22987830f4ffa6b3f3d71f3 (patch) | |
tree | b7ccc1df3165160421835a40aa0d49da4fd22cfb /clang/lib/Frontend/MultiplexConsumer.cpp | |
parent | 60534818a9d7b3d4e249a2e51af5f182dfd48434 (diff) | |
download | bcm5719-llvm-b6a5d05a8a6e9064b22987830f4ffa6b3f3d71f3.tar.gz bcm5719-llvm-b6a5d05a8a6e9064b22987830f4ffa6b3f3d71f3.zip |
Remove ASTConsumer::HandleVTable()'s bool parameter.
Sema calls HandleVTable() with a bool parameter which is then threaded through
three layers. The only effect of this bool is an early return at the last
layer.
Instead, remove this parameter and call HandleVTable() only if the bool is
true. No intended behavior change.
llvm-svn: 226096
Diffstat (limited to 'clang/lib/Frontend/MultiplexConsumer.cpp')
-rw-r--r-- | clang/lib/Frontend/MultiplexConsumer.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/Frontend/MultiplexConsumer.cpp b/clang/lib/Frontend/MultiplexConsumer.cpp index 019882833d4..3c4fed1d18e 100644 --- a/clang/lib/Frontend/MultiplexConsumer.cpp +++ b/clang/lib/Frontend/MultiplexConsumer.cpp @@ -292,10 +292,9 @@ void MultiplexConsumer::CompleteTentativeDefinition(VarDecl *D) { Consumer->CompleteTentativeDefinition(D); } -void MultiplexConsumer::HandleVTable( - CXXRecordDecl *RD, bool DefinitionRequired) { +void MultiplexConsumer::HandleVTable(CXXRecordDecl *RD) { for (auto &Consumer : Consumers) - Consumer->HandleVTable(RD, DefinitionRequired); + Consumer->HandleVTable(RD); } ASTMutationListener *MultiplexConsumer::GetASTMutationListener() { |