If an excluded header does not exist, just ignore it

llvm-svn: 168077
This commit is contained in:
Douglas Gregor 2012-11-15 19:47:16 +00:00
parent f34e4fa7a6
commit 4b27a64b92
2 changed files with 4 additions and 1 deletions

View File

@ -1307,7 +1307,9 @@ void ModuleMapParser::parseHeaderDecl(SourceLocation UmbrellaLoc,
if (BuiltinFile)
Map.addHeader(ActiveModule, BuiltinFile, Exclude);
}
} else {
} else if (!Exclude) {
// Ignore excluded header files. They're optional anyway.
Diags.Report(FileNameLoc, diag::err_mmap_header_not_found)
<< Umbrella << FileName;
HadError = true;

View File

@ -63,6 +63,7 @@ module decldef {
module redecl_merge_top {
header "redecl-merge-top.h"
explicit module Explicit { header "redecl-merge-top-explicit.h" }
exclude header "nonexistent.h"
}
module redecl_merge_left {
header "redecl-merge-left.h"