diff options
| author | Douglas Gregor <dgregor@apple.com> | 2013-05-10 22:52:27 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2013-05-10 22:52:27 +0000 |
| commit | 30a16f1383b56cb71be251999a577b2e37db2ce0 (patch) | |
| tree | 9e7763fc43203050597067bd4e694ea04aef4a53 /lib/Lex/ModuleMap.cpp | |
| parent | c1478618363083486679fc8325b88fc30bd5aac7 (diff) | |
| download | clang-30a16f1383b56cb71be251999a577b2e37db2ce0.tar.gz clang-30a16f1383b56cb71be251999a577b2e37db2ce0.tar.bz2 clang-30a16f1383b56cb71be251999a577b2e37db2ce0.tar.xz | |
[Modules] Make r180934 more efficient by only loading top-level module maps in system header directories.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@181643 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/ModuleMap.cpp')
| -rw-r--r-- | lib/Lex/ModuleMap.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Lex/ModuleMap.cpp b/lib/Lex/ModuleMap.cpp index de234853fb..62b1fc73c8 100644 --- a/lib/Lex/ModuleMap.cpp +++ b/lib/Lex/ModuleMap.cpp @@ -183,8 +183,7 @@ Module *ModuleMap::findModuleForHeader(const FileEntry *File) { // specific module (e.g., in /usr/include). if (File->getDir() == BuiltinIncludeDir && isBuiltinHeader(llvm::sys::path::filename(File->getName()))) { - SmallVector<Module *, 4> AllModules; - HeaderInfo.collectAllModules(AllModules); + HeaderInfo.loadTopLevelSystemModules(); // Check again. Known = Headers.find(File); |
