summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic/Module.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2012-10-15 06:28:11 +0000
committerDouglas Gregor <dgregor@apple.com>2012-10-15 06:28:11 +0000
commit595276662862d87f0cf212862bc785b3193c3fe6 (patch)
tree251d35d62ee4acdb0566e65060333794861fbef7 /clang/lib/Basic/Module.cpp
parent8c3e65db520c82ae017720899fcda4a218b11a73 (diff)
downloadbcm5719-llvm-595276662862d87f0cf212862bc785b3193c3fe6.tar.gz
bcm5719-llvm-595276662862d87f0cf212862bc785b3193c3fe6.zip
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. llvm-svn: 165921
Diffstat (limited to 'clang/lib/Basic/Module.cpp')
-rw-r--r--clang/lib/Basic/Module.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/lib/Basic/Module.cpp b/clang/lib/Basic/Module.cpp
index 91b6207b55a..76c7f8b364e 100644
--- a/clang/lib/Basic/Module.cpp
+++ b/clang/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)
OpenPOWER on IntegriCloud