From da4fda73647f7ab8cdf2e5d76d6ad8825db62dfe Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Fri, 13 Jan 2012 01:20:43 +0000 Subject: 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 --- clang/lib/Lex/ModuleMap.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'clang/lib/Lex/ModuleMap.cpp') 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; -- cgit v1.2.3