mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Re-apply "Verify deserialized Swift decls as well as imported Clang decls."
Swift SVN r22248
This commit is contained in:
@@ -334,6 +334,13 @@ bool SerializedModuleLoader::isSerializedAST(StringRef data) {
|
||||
return data.startswith(signatureStr);
|
||||
}
|
||||
|
||||
void SerializedModuleLoader::verifyAllModules() {
|
||||
#ifndef NDEBUG
|
||||
for (const LoadedModulePair &loaded : LoadedModuleFiles)
|
||||
loaded.first->verify();
|
||||
#endif
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// SerializedASTFile implementation
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user