mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user