aboutsummaryrefslogtreecommitdiff
path: root/lib/Driver/Tools.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-08-18 04:41:58 +0000
committerDouglas Gregor <dgregor@apple.com>2011-08-18 04:41:58 +0000
commita4c189f4356f24d984aac781d7762b8c55082b7e (patch)
tree0079f4cb4f51ab1e7aebcfccc907e3616e031178 /lib/Driver/Tools.cpp
parent10bc00fd45824f9b5cd139d63af8b0f6d28aadda (diff)
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@137925 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Tools.cpp')
0 files changed, 0 insertions, 0 deletions