diff options
author | Douglas Gregor <dgregor@apple.com> | 2012-01-13 01:20:43 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2012-01-13 01:20:43 +0000 |
commit | d30630f86592524f087f7bc7c889555a9293d7c8 (patch) | |
tree | b00b9c9f169389f0f556cf054c0aafeeb375751d /lib/Lex/ModuleMap.cpp | |
parent | b71d1570417d81de7b064ad788bea690e2c89111 (diff) |
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).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148082 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/ModuleMap.cpp')
-rw-r--r-- | lib/Lex/ModuleMap.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Lex/ModuleMap.cpp b/lib/Lex/ModuleMap.cpp index 55fa50809a..b74a74da46 100644 --- a/lib/Lex/ModuleMap.cpp +++ b/lib/Lex/ModuleMap.cpp @@ -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; |