mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[AST] Move ide::findUnderlyingClangModule() to Module::findUnderlyingClangModule() so that the ASTPrinter can use it.
Swift SVN r23691
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user