When inferring a module map for a framework, add the 'private'

requirement to headers under PrivateHeaders. We don't want to build
them as part of the module (yet).

llvm-svn: 148082
This commit is contained in:
Douglas Gregor 2012-01-13 01:20:43 +00:00
parent cb6d4ee793
commit da4fda7364
1 changed files with 1 additions and 0 deletions

View File

@ -350,6 +350,7 @@ ModuleMap::inferFrameworkModule(StringRef ModuleName,
/*IsFramework=*/false,
/*IsExplicit=*/true).first;
setUmbrellaDir(Private, Dir);
Private->addRequirement("private", LangOpts);
Private->InferSubmodules = true;
Private->InferExplicitSubmodules = true;
Private->InferExportWildcard = true;