[AST] Move ide::findUnderlyingClangModule() to Module::findUnderlyingClangModule() so that the ASTPrinter can use it.

Swift SVN r23691
This commit is contained in:
Argyrios Kyrtzidis
2014-12-04 20:17:03 +00:00
parent 026b88fce8
commit d039fb6369
10 changed files with 29 additions and 21 deletions

View File

@@ -439,6 +439,12 @@ StringRef SerializedASTFile::getFilename() const {
return File.getModuleFilename();
}
const clang::Module *SerializedASTFile::getUnderlyingClangModule() {
if (auto *ShadowedModule = getFile().getShadowedModule())
return ShadowedModule->findUnderlyingClangModule();
return nullptr;
}
Identifier
SerializedASTFile::getDiscriminatorForPrivateValue(const ValueDecl *D) const {
Identifier discriminator = File.getDiscriminatorForPrivateValue(D);