diff options
| author | Alex Lorenz <arphaman@gmail.com> | 2021-07-15 13:52:38 -0700 |
|---|---|---|
| committer | Alex Lorenz <arphaman@gmail.com> | 2021-07-20 11:11:28 -0700 |
| commit | c68f247275eed94a4f4b97ad53b4d599acfd181a (patch) | |
| tree | 5d2350b58b4f2a607aa25f32d9159b57f29e2172 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
| parent | 1a762f93f81640768dc9e9d933780fff32cfa639 (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
