forked from OSchip/llvm-project
If an excluded header does not exist, just ignore it
llvm-svn: 168077
This commit is contained in:
parent
f34e4fa7a6
commit
4b27a64b92
|
@ -1307,7 +1307,9 @@ void ModuleMapParser::parseHeaderDecl(SourceLocation UmbrellaLoc,
|
||||||
if (BuiltinFile)
|
if (BuiltinFile)
|
||||||
Map.addHeader(ActiveModule, BuiltinFile, Exclude);
|
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)
|
Diags.Report(FileNameLoc, diag::err_mmap_header_not_found)
|
||||||
<< Umbrella << FileName;
|
<< Umbrella << FileName;
|
||||||
HadError = true;
|
HadError = true;
|
||||||
|
|
|
@ -63,6 +63,7 @@ module decldef {
|
||||||
module redecl_merge_top {
|
module redecl_merge_top {
|
||||||
header "redecl-merge-top.h"
|
header "redecl-merge-top.h"
|
||||||
explicit module Explicit { header "redecl-merge-top-explicit.h" }
|
explicit module Explicit { header "redecl-merge-top-explicit.h" }
|
||||||
|
exclude header "nonexistent.h"
|
||||||
}
|
}
|
||||||
module redecl_merge_left {
|
module redecl_merge_left {
|
||||||
header "redecl-merge-left.h"
|
header "redecl-merge-left.h"
|
||||||
|
|
Loading…
Reference in New Issue