aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Lex/ModuleMap.cpp
diff options
context:
space:
mode:
authorJan Svoboda <jan_svoboda@apple.com>2023-07-06 18:30:06 +0200
committerJan Svoboda <jan_svoboda@apple.com>2023-07-17 13:50:24 -0700
commit227f71995804fa5df3f917ae3a7b1499cd24726c (patch)
treeba06a52e7e2002963fcee178b08630ce45164977 /clang/lib/Lex/ModuleMap.cpp
parentabcf7ce45794839a473a236d55d163016cde5ba6 (diff)
downloadllvm-227f71995804fa5df3f917ae3a7b1499cd24726c.zip
llvm-227f71995804fa5df3f917ae3a7b1499cd24726c.tar.gz
llvm-227f71995804fa5df3f917ae3a7b1499cd24726c.tar.bz2
[clang][modules][deps] Avoid checks for relocated modules
Currently, `ASTReader` performs some checks to diagnose relocated modules. This can add quite a bit of overhead to the scanner: it requires looking up, parsing and resolving module maps for all transitively loaded module files (and all the module maps encountered in the search paths on the way). Most of those checks are not really useful in the scanner anyway, since it uses strict context hash and immutable filesystem, which prevent those scenarios in the first place. This can speed up scanning by up to 30%. Depends on D150292. Reviewed By: benlangmuir Differential Revision: https://reviews.llvm.org/D150320
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
0 files changed, 0 insertions, 0 deletions