From 2b49d1f0ad790a8a5d514af1be211591a746cb73 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Mon, 15 Oct 2012 06:28:11 +0000 Subject: Introduce the notion of excluded headers into the module map description. Previously, one could emulate this behavior by placing the header in an always-unavailable submodule, but Argyrios guilted me into expressing this idea properly. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165921 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Basic/Module.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib/Basic/Module.cpp') diff --git a/lib/Basic/Module.cpp b/lib/Basic/Module.cpp index 91b6207b55..76c7f8b364 100644 --- a/lib/Basic/Module.cpp +++ b/lib/Basic/Module.cpp @@ -219,6 +219,13 @@ void Module::print(llvm::raw_ostream &OS, unsigned Indent) const { OS.write_escaped(Headers[I]->getName()); OS << "\"\n"; } + + for (unsigned I = 0, N = ExcludedHeaders.size(); I != N; ++I) { + OS.indent(Indent + 2); + OS << "exclude header \""; + OS.write_escaped(ExcludedHeaders[I]->getName()); + OS << "\"\n"; + } for (submodule_const_iterator MI = submodule_begin(), MIEnd = submodule_end(); MI != MIEnd; ++MI) -- cgit v1.2.3