diff options
author | Ilya Biryukov <ibiryukov@google.com> | 2019-12-18 11:44:06 +0100 |
---|---|---|
committer | Ilya Biryukov <ibiryukov@google.com> | 2019-12-18 12:24:00 +0100 |
commit | c1bbefef9d36e84e469513374ef404b9e354b262 (patch) | |
tree | f8a599c61384a70929fec940ef393ed790305d1f /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 038f53882e7cc25da0a71018d1c7f9b4706675c2 (diff) | |
download | llvm-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