[Modules] Resolve top-headers of modules lazily.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Wed, 13 Mar 2013 21:13:43 +0000 (21:13 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Wed, 13 Mar 2013 21:13:43 +0000 (21:13 +0000)
commit3c5305c15ed6dd0413a83675d482263e125f18ac
tree07d4ef68b8edd6009cc9df4791428e67f92fd893
parent6b72269b3dd8978816a12080b4314317801f7d70
[Modules] Resolve top-headers of modules lazily.

This allows resolving top-header filenames of modules to FileEntries when
we need them, not eagerly.

Note that that this breaks ABI for libclang functions
clang_Module_getTopLevelHeader / clang_Module_getNumTopLevelHeaders
but this is fine because they are experimental and not widely used yet.

llvm-svn: 176975
clang/include/clang-c/Index.h
clang/include/clang/Basic/Module.h
clang/lib/Basic/Module.cpp
clang/lib/Frontend/FrontendActions.cpp
clang/lib/Lex/ModuleMap.cpp
clang/lib/Serialization/ASTReader.cpp
clang/lib/Serialization/ASTWriter.cpp
clang/tools/c-index-test/c-index-test.c
clang/tools/libclang/CIndex.cpp