sil-opt: implement partial AST verification

... and use it to parallelize the parse_stdlib.sil test, which was
taking too long.

Swift SVN r25295
This commit is contained in:
Dmitri Hrybenko
2015-02-14 11:48:11 +00:00
parent 5ad7181663
commit f6faf8ad81
24 changed files with 205 additions and 2 deletions

View File

@@ -1503,8 +1503,9 @@ Identifier ModuleFile::getDiscriminatorForPrivateValue(const ValueDecl *D) {
void ModuleFile::verify() const {
#ifndef NDEBUG
const auto &Context = getContext();
for (const Serialized<Decl*> &next : Decls)
if (next.isComplete())
if (next.isComplete() && swift::shouldVerify(next, Context))
swift::verify(next);
#endif
}