[AST] Break dependency cycle between swiftAST and swiftClangImporter

NormalProtocolConformance::isRetroactive() introduces dependency on swiftClangImporter by calling ClangModuleUnit::getAdapterModule().
Do some refactoring to break the cycle.
This commit is contained in:
Argyrios Kyrtzidis
2018-12-06 22:39:41 -08:00
parent 75ab0a5f36
commit 9405f1eb09
3 changed files with 10 additions and 6 deletions

View File

@@ -1315,6 +1315,9 @@ public:
return nullptr;
}
/// Returns the Swift module that overlays a Clang module.
virtual ModuleDecl *getAdapterModule() const { return nullptr; }
virtual bool isSystemModule() const { return false; }
/// Retrieve the set of generic signatures stored within this module.