[cfe-commits] r137925 - in /cfe/trunk: include/clang/Serialization/ASTReader.h lib/Serialization/ASTReader.cpp test/Modules/ test/Modules/Inputs/ test/Modules/Inputs/diamond_bottom.h test/Modules/Inputs/diamond_left.h test/Modules/Inputs/diamond_right.h test/Modules/Inputs/diamond_top.h test/Modules/diamond.c

Sebastian Redl sebastian.redl at getdesigned.at
Thu Aug 18 11:24:53 PDT 2011


On 18.08.2011, at 06:41, Douglas Gregor wrote:

> Author: dgregor
> Date: Wed Aug 17 23:41:58 2011
> New Revision: 137925
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=137925&view=rev
> Log:
> 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.

This is absolutely awesome! It's great to see all this work finally showing the first results.

Sebastian



More information about the cfe-commits mailing list