aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorIlya Biryukov <ibiryukov@google.com>2019-12-18 11:44:06 +0100
committerIlya Biryukov <ibiryukov@google.com>2019-12-18 12:24:00 +0100
commitc1bbefef9d36e84e469513374ef404b9e354b262 (patch)
treef8a599c61384a70929fec940ef393ed790305d1f /clang/lib/Frontend/CompilerInvocation.cpp
parent038f53882e7cc25da0a71018d1c7f9b4706675c2 (diff)
downloadllvm-c1bbefef9d36e84e469513374ef404b9e354b262.zip
llvm-c1bbefef9d36e84e469513374ef404b9e354b262.tar.gz
llvm-c1bbefef9d36e84e469513374ef404b9e354b262.tar.bz2
[Syntax] Use a hash table to search for tokens by their location
This is both more efficient and avoids corner cases in `SourceManager::isBeforeInTranslationUnit`. The change is trivial and clearly a performance improvement on the hot path of building the syntax tree, so sending without review.
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions