This is an archive of the discontinued LLVM Phabricator instance.

Clean up isBeforeInTranslationUnit cache and add eviction.
Needs ReviewPublic

Authored by sammccall on Sep 26 2022, 7:53 PM.
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

Previously the first 300 entries would stay around forever, and any new queries
would thrash on entry 301.
The cache code/data structures were more complicated than necessary.

Cleaned up the interface to isInSameTranslationUnit, which had unspecified
side-effects that other code was relying on.

Diff Detail