Improve coordination between the module manager and the global module
authorDouglas Gregor <dgregor@apple.com>
Fri, 25 Jan 2013 23:32:03 +0000 (23:32 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 25 Jan 2013 23:32:03 +0000 (23:32 +0000)
commit7211ac15bbd97fd9ea8016a6632cb039a1071f1d
tree13674728016d428fb1e74988296e7bf1155b3e33
parent8653bcf024708d6d836b4e214d0ff4872798e0f8
Improve coordination between the module manager and the global module
index, optimizing the operation that skips lookup in modules where we
know the identifier will not be found. This makes the global module
index optimization actually useful, providing an 8.5% speedup over
modules without the global module index for -fsyntax-only.

llvm-svn: 173529
clang/include/clang/Serialization/GlobalModuleIndex.h
clang/include/clang/Serialization/ModuleManager.h
clang/lib/Serialization/ASTReader.cpp
clang/lib/Serialization/GlobalModuleIndex.cpp
clang/lib/Serialization/ModuleManager.cpp