[Lldb-commits] [PATCH] D68696: [lldb][NFC] Remove strange bool parameter from Searcher::SearchCallback

Jim Ingham via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Oct 9 10:27:49 PDT 2019


jingham accepted this revision.
jingham added a comment.

One of the oddities of the Search -> Search callback stuff is that the Searcher's Filter might be narrower than the level at which the Search Callback wants to be invoked.  The former is whatever the user actually wants limit the search to which is really undetermined, whereas the latter is the level that is convenient for implementing the callback, so there's no necessary linkage.  That means that every time the callback finds a match, it has to check with the filter to see if the match falls within the filter.  This parameter was supposed to be a way for the searcher to tell the callback that it's search scope exactly matched the filter, so the callback didn't need to check.

That would be useful if checking the filter ever showed up as a performance issue, but it never has.  So it's fine to remove this.


Repository:
  rLLDB LLDB

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D68696/new/

https://reviews.llvm.org/D68696





More information about the lldb-commits mailing list