summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/ModuleMap.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2012-01-13 01:20:43 +0000
committerDouglas Gregor <dgregor@apple.com>2012-01-13 01:20:43 +0000
commitda4fda73647f7ab8cdf2e5d76d6ad8825db62dfe (patch)
treea64753df2726ac1e48a247b1ef4f6854fb0e1f0e /clang/lib/Lex/ModuleMap.cpp
parentcb6d4ee7934a0a3c168f6a9749b1e97b0834b668 (diff)
downloadbcm5719-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.cpp1
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;
OpenPOWER on IntegriCloud