[cfe-commits] r148082 - /cfe/trunk/lib/Lex/ModuleMap.cpp

Douglas Gregor dgregor at apple.com
Thu Jan 12 17:20:43 PST 2012


Author: dgregor
Date: Thu Jan 12 19:20:43 2012
New Revision: 148082

URL: http://llvm.org/viewvc/llvm-project?rev=148082&view=rev
Log:
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).

Modified:
    cfe/trunk/lib/Lex/ModuleMap.cpp

Modified: cfe/trunk/lib/Lex/ModuleMap.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/ModuleMap.cpp?rev=148082&r1=148081&r2=148082&view=diff
==============================================================================
--- cfe/trunk/lib/Lex/ModuleMap.cpp (original)
+++ cfe/trunk/lib/Lex/ModuleMap.cpp Thu Jan 12 19:20:43 2012
@@ -350,6 +350,7 @@
                                          /*IsFramework=*/false, 
                                          /*IsExplicit=*/true).first;
     setUmbrellaDir(Private, Dir);
+    Private->addRequirement("private", LangOpts);
     Private->InferSubmodules = true;
     Private->InferExplicitSubmodules = true;
     Private->InferExportWildcard = true;





More information about the cfe-commits mailing list