Refactor the module map file used for uniquing a module name out of
authorBen Langmuir <blangmuir@apple.com>
Sat, 9 Aug 2014 00:57:23 +0000 (00:57 +0000)
committerBen Langmuir <blangmuir@apple.com>
Sat, 9 Aug 2014 00:57:23 +0000 (00:57 +0000)
commit243f2d734e94504bf5ddbf4c179a235f47866e1b
tree488cdbe6e4c50067401758ebf3f1ccdf546c4f69
parent630cbfce16aee0b05bcf945e2680e0bffc3aa927
Refactor the module map file used for uniquing a module name out of

class Module. It's almost always going to be the same as
getContainingModule() for top-level modules, so just add a map to cover
the remaining cases.  This lets us do less bookkeeping to keep the
ModuleMap fields up to date.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@215268 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/Module.h
include/clang/Lex/ModuleMap.h
lib/Basic/Module.cpp
lib/Frontend/CompilerInstance.cpp
lib/Frontend/FrontendActions.cpp
lib/Lex/HeaderSearch.cpp
lib/Lex/ModuleMap.cpp
lib/Serialization/ASTReader.cpp
lib/Serialization/ASTWriter.cpp