mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[serialization] Introduce 'FailedImportModule', which is used to track of when a module file failed to load (e.g. because of missing dependencies).
Swift SVN r8934
This commit is contained in:
@@ -69,7 +69,9 @@ namespace swift {
|
||||
TranslationUnit,
|
||||
Builtin,
|
||||
Serialized,
|
||||
Clang
|
||||
Clang,
|
||||
/// A 'module' placeholder for failed imports.
|
||||
FailedImport
|
||||
};
|
||||
|
||||
/// Constants used to customize name lookup.
|
||||
@@ -528,7 +530,8 @@ public:
|
||||
|
||||
static bool classof(const Module *M) {
|
||||
return M->getKind() == ModuleKind::Serialized ||
|
||||
M->getKind() == ModuleKind::Clang;
|
||||
M->getKind() == ModuleKind::Clang ||
|
||||
M->getKind() == ModuleKind::FailedImport;
|
||||
}
|
||||
static bool classof(const DeclContext *DC) {
|
||||
return isa<Module>(DC) && classof(cast<Module>(DC));
|
||||
|
||||
Reference in New Issue
Block a user