]> granicus.if.org Git - clang/commit
Temporarily revert r137925 to appease buildbots. Original commit message:
authorChad Rosier <mcrosier@apple.com>
Thu, 18 Aug 2011 19:06:24 +0000 (19:06 +0000)
committerChad Rosier <mcrosier@apple.com>
Thu, 18 Aug 2011 19:06:24 +0000 (19:06 +0000)
commit870d1fee3c5027efe7fd23d6935952bc1f419f99
tree43a5d2be5924494607d0ac3c678a7e89250493d6
parent647a75160df6d53d26724038b3bfe0d836513f58
Temporarily revert r137925 to appease buildbots. Original commit message:

Teach ModuleManager::addModule() to check whether a particular module
has already been loaded before allocating a new Module structure. If
the module has already been loaded (uniquing based on file name), then
just return the existing module rather than trying to load it again.

This allows us to load a DAG of modules. Introduce a simple test case
that forms a diamond-shaped module graph, and illustrates that a
source file importing the bottom of the diamond can see declarations
in all four of the modules that make up the diamond.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137971 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Serialization/ASTReader.h
lib/Serialization/ASTReader.cpp
test/Modules/Inputs/diamond_bottom.h [deleted file]
test/Modules/Inputs/diamond_left.h [deleted file]
test/Modules/Inputs/diamond_right.h [deleted file]
test/Modules/Inputs/diamond_top.h [deleted file]
test/Modules/diamond.c [deleted file]