diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2017-01-28 23:02:12 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2017-01-28 23:02:12 +0000 |
commit | 8e6bc1979d342bffe98fdaa21f6925c2e289d561 (patch) | |
tree | 8c9ae1d212053bb0cf66e75c35fcc8f707535500 /clang/lib/Lex/ModuleMap.cpp | |
parent | 7401de55468116a5628e5155496de3503651aa49 (diff) | |
download | llvm-8e6bc1979d342bffe98fdaa21f6925c2e289d561.zip llvm-8e6bc1979d342bffe98fdaa21f6925c2e289d561.tar.gz llvm-8e6bc1979d342bffe98fdaa21f6925c2e289d561.tar.bz2 |
Modules: Enforce that ModuleManager::removeModules deletes the tail
ModuleManager::removeModules always deletes a tail of the
ModuleManager::Chain. Change the API to enforce that so that we can
simplify the code inside.
There's no real functionality change, although there's a slight
performance hack to loop to the First deleted module instead of the
final module in the chain (skipping the about-to-be-deleted tail).
Also document something suspicious: we fail to clean deleted modules out
of ModuleFile::Imports.
llvm-svn: 293398
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
0 files changed, 0 insertions, 0 deletions