summaryrefslogtreecommitdiffstats
path: root/clang/lib/Serialization
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2015-10-13 01:26:26 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2015-10-13 01:26:26 +0000
commit68142216ee12eb4800a76e662c4e925be4a79b49 (patch)
tree784cc0fbf35888343b739b09de51b4dba9de33b8 /clang/lib/Serialization
parent2a4b27111dc79e65f15d9f7bb86a3cbb2caec3d3 (diff)
downloadbcm5719-llvm-68142216ee12eb4800a76e662c4e925be4a79b49.tar.gz
bcm5719-llvm-68142216ee12eb4800a76e662c4e925be4a79b49.zip
[modules] Improve error message on failed module load due to a missing file to
say which module file referenced the missing file. llvm-svn: 250140
Diffstat (limited to 'clang/lib/Serialization')
-rw-r--r--clang/lib/Serialization/ASTReader.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/Serialization/ASTReader.cpp b/clang/lib/Serialization/ASTReader.cpp
index 5fd5e782a86..59347de9c17 100644
--- a/clang/lib/Serialization/ASTReader.cpp
+++ b/clang/lib/Serialization/ASTReader.cpp
@@ -1948,7 +1948,9 @@ InputFile ASTReader::getInputFile(ModuleFile &F, unsigned ID, bool Complain) {
if (Complain) {
std::string ErrorStr = "could not find file '";
ErrorStr += Filename;
- ErrorStr += "' referenced by AST file";
+ ErrorStr += "' referenced by AST file '";
+ ErrorStr += F.FileName;
+ ErrorStr += "'";
Error(ErrorStr.c_str());
}
// Record that we didn't find the file.
OpenPOWER on IntegriCloud