summaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorAlex Lorenz <arphaman@gmail.com>2021-07-15 13:52:38 -0700
committerAlex Lorenz <arphaman@gmail.com>2021-07-20 11:11:28 -0700
commitc68f247275eed94a4f4b97ad53b4d599acfd181a (patch)
tree5d2350b58b4f2a607aa25f32d9159b57f29e2172 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent1a762f93f81640768dc9e9d933780fff32cfa639 (diff)
[clang-scan-deps] ignore top-level module dependencies that aren't actually imported
Whenever -fmodule-name=top_level_module name is parsed, and clang actually tries to import top_level_module, the headers are imported textually and the module isn't actually built. However, the dependency scanner could still record it as a potential dependency if the module was reimported and thus recorded by the preprocessor callbacks. This change avoids collecting this kind of module as a dependency by verifying that we don't collect top level modules without actual PCM files. Differential Revision: https://reviews.llvm.org/D106100
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions