Distinguish the various kinds of AST file loading failures:

file corruption, compiler version mismatch, target/language
configuration mismatch, out-of-date AST file. No functionality change
yet.

llvm-svn: 166446
This commit is contained in:
Douglas Gregor
2012-10-22 22:50:17 +00:00
parent 62183c4e18
commit c9ad5fb604
5 changed files with 130 additions and 121 deletions

View File

@@ -46,7 +46,10 @@ static ASTReader *createASTReader(CompilerInstance &CI,
return Reader.take();
case ASTReader::Failure:
case ASTReader::IgnorePCH:
case ASTReader::OutOfDate:
case ASTReader::VersionMismatch:
case ASTReader::ConfigurationMismatch:
case ASTReader::HadErrors:
break;
}
return 0;