diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-10-05 00:22:33 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-10-05 00:22:33 +0000 |
commit | c597c8c48b977d70996bc55e36e230f264120516 (patch) | |
tree | fb990a8a4d797b1c8a87eff5e3a493907b49c79c /clang/lib/Lex/ModuleMap.cpp | |
parent | abc721ab4d3afcc987de251940786dce869c4db9 (diff) | |
download | bcm5719-llvm-c597c8c48b977d70996bc55e36e230f264120516.tar.gz bcm5719-llvm-c597c8c48b977d70996bc55e36e230f264120516.zip |
[Modules] Introduce Module::TopHeaders which is a set of top-level headers
that are associated with a (sub)module.
llvm-svn: 165279
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
-rw-r--r-- | clang/lib/Lex/ModuleMap.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Lex/ModuleMap.cpp b/clang/lib/Lex/ModuleMap.cpp index 5c9a9b4fefb..a0caf03e776 100644 --- a/clang/lib/Lex/ModuleMap.cpp +++ b/clang/lib/Lex/ModuleMap.cpp @@ -152,6 +152,7 @@ Module *ModuleMap::findModuleForHeader(const FileEntry *File) { StringRef Name = llvm::sys::path::stem(File->getName()); Result = findOrCreateModule(Name, Result, /*IsFramework=*/false, Explicit).first; + Result->TopHeaders.insert(File); // If inferred submodules export everything they import, add a // wildcard to the set of exports. |