From c7782d96c657eeb767bfea5117db49dc40e6356c Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Fri, 5 Oct 2012 00:22:33 +0000 Subject: [Modules] Introduce Module::TopHeaders which is a set of top-level headers that are associated with a (sub)module. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165279 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Lex/ModuleMap.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/Lex/ModuleMap.cpp') diff --git a/lib/Lex/ModuleMap.cpp b/lib/Lex/ModuleMap.cpp index 5c9a9b4fef..a0caf03e77 100644 --- a/lib/Lex/ModuleMap.cpp +++ b/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. -- cgit v1.2.3-18-g5258