From bc3f628815b3841dc99109e7f67f9afa7793bc94 Mon Sep 17 00:00:00 2001 From: Lawrence Crowl Date: Thu, 20 Jun 2013 21:14:14 +0000 Subject: This patch adds new private headers to the module map. Private headers may be included from within the module, but not from outside the module. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@184471 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Basic/Module.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'lib/Basic/Module.cpp') diff --git a/lib/Basic/Module.cpp b/lib/Basic/Module.cpp index 13518cde66..8ac098ca79 100644 --- a/lib/Basic/Module.cpp +++ b/lib/Basic/Module.cpp @@ -293,10 +293,10 @@ void Module::print(raw_ostream &OS, unsigned Indent) const { OS << "\n"; } - for (unsigned I = 0, N = Headers.size(); I != N; ++I) { + for (unsigned I = 0, N = NormalHeaders.size(); I != N; ++I) { OS.indent(Indent + 2); OS << "header \""; - OS.write_escaped(Headers[I]->getName()); + OS.write_escaped(NormalHeaders[I]->getName()); OS << "\"\n"; } @@ -306,6 +306,13 @@ void Module::print(raw_ostream &OS, unsigned Indent) const { OS.write_escaped(ExcludedHeaders[I]->getName()); OS << "\"\n"; } + + for (unsigned I = 0, N = PrivateHeaders.size(); I != N; ++I) { + OS.indent(Indent + 2); + OS << "private header \""; + OS.write_escaped(PrivateHeaders[I]->getName()); + OS << "\"\n"; + } for (submodule_const_iterator MI = submodule_begin(), MIEnd = submodule_end(); MI != MIEnd; ++MI) -- cgit v1.2.3