diff options
author | Daniel Jasper <djasper@google.com> | 2015-10-07 19:56:12 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2015-10-07 19:56:12 +0000 |
commit | d1ac50ecaa07ffd6c4b56919697e36cd642b72b4 (patch) | |
tree | b90e08b9f39cf19c6f82536b66ddfd2cb9d27fae /llvm/lib/IR/Module.cpp | |
parent | 74b8f4cbdf62b0b6944ab109782f633733a67e98 (diff) | |
download | bcm5719-llvm-d1ac50ecaa07ffd6c4b56919697e36cd642b72b4.tar.gz bcm5719-llvm-d1ac50ecaa07ffd6c4b56919697e36cd642b72b4.zip |
ASTMatchers: Keep AllCallbacks in a set instead of a vector
AllCallbacks is currently only used to call onStartOfTranslationUnit and
onEndOfTranslationUnit on them. In this (and any other scenario I can
come up with), it is important (or at least better) not to have
duplicates in this container. E.g. currently onEndOfTranslationUnit is
called repeatedly on the same callback for every matcher that is
registered with it.
llvm-svn: 249598
Diffstat (limited to 'llvm/lib/IR/Module.cpp')
0 files changed, 0 insertions, 0 deletions