summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/ChainedIncludesSource.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2012-10-22 22:50:17 +0000
committerDouglas Gregor <dgregor@apple.com>2012-10-22 22:50:17 +0000
commitc9ad5fb604ad56591a445c55fb955faf970f43df (patch)
tree15e1c82794d5c3a0ca2d691086b00da6e71b8db1 /clang/lib/Frontend/ChainedIncludesSource.cpp
parent62183c4e18a964c2715cedb3f6fdc6bb3c4776bd (diff)
downloadbcm5719-llvm-c9ad5fb604ad56591a445c55fb955faf970f43df.tar.gz
bcm5719-llvm-c9ad5fb604ad56591a445c55fb955faf970f43df.zip
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
Diffstat (limited to 'clang/lib/Frontend/ChainedIncludesSource.cpp')
-rw-r--r--clang/lib/Frontend/ChainedIncludesSource.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/lib/Frontend/ChainedIncludesSource.cpp b/clang/lib/Frontend/ChainedIncludesSource.cpp
index 5f7ff74bc6f..bfe0693ad4c 100644
--- a/clang/lib/Frontend/ChainedIncludesSource.cpp
+++ b/clang/lib/Frontend/ChainedIncludesSource.cpp
@@ -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;
OpenPOWER on IntegriCloud