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 | da4fda73647f7ab8cdf2e5d76d6ad8825db62dfe (patch) | |
tree | a64753df2726ac1e48a247b1ef4f6854fb0e1f0e /clang/lib/Lex/ModuleMap.cpp | |
parent | cb6d4ee7934a0a3c168f6a9749b1e97b0834b668 (diff) | |
download | bcm5719-llvm-da4fda73647f7ab8cdf2e5d76d6ad8825db62dfe.tar.gz bcm5719-llvm-da4fda73647f7ab8cdf2e5d76d6ad8825db62dfe.zip |
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
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 55fa50809a1..b74a74da461 100644 --- a/clang/lib/Lex/ModuleMap.cpp +++ b/clang/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; |