Module interface printing: add an option to skip the Swift overlay.

This is a debugging aid, not a general feature, hence the lack of
testing or actual, correct semantics.

Swift SVN r15886
This commit is contained in:
Doug Gregor
2014-04-03 18:07:59 +00:00
parent d491f5121e
commit 1a6d27079d
2 changed files with 8 additions and 3 deletions

View File

@@ -229,7 +229,10 @@ void swift::ide::printSubmoduleInterface(
}
}
for (auto *D : SwiftDecls)
PrintDecl(D);
if (!(TraversalOptions & ModuleTraversal::SkipOverlay) ||
!InterestingClangModule) {
for (auto *D : SwiftDecls)
PrintDecl(D);
}
}