aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Lex/HeaderSearch.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2013-12-16 14:53:57 +0000
committerDaniel Jasper <djasper@google.com>2013-12-16 14:53:57 +0000
commit5c6ee49fa037acf664c549bf08327d89907309e6 (patch)
tree76e88b0a0e81d15b86ac7ade6afd61b4d25c4960 /clang/lib/Lex/HeaderSearch.cpp
parent3bb50b0ff84ebf6ca7d4506eba8fc89f96d0d993 (diff)
downloadllvm-5c6ee49fa037acf664c549bf08327d89907309e6.zip
llvm-5c6ee49fa037acf664c549bf08327d89907309e6.tar.gz
llvm-5c6ee49fa037acf664c549bf08327d89907309e6.tar.bz2
Modules: Make missing headers in a module.map a warning not an error.
Instead, mark the module as unavailable so that clang errors as soon as someone tries to build this module. A better long-term strategy might be to not stat the header files at all while reading the module map and instead read them only when the module is being built (there is a corresponding FIXME in parseHeaderDecl()). However, it seems non-trivial to get there and this would be a temporary solution to unblock us. Also changed the implementation to reuse the same DiagnosticsEngine as otherwise warnings can't be enabled or disabled with command-line flags. llvm-svn: 197388
Diffstat (limited to 'clang/lib/Lex/HeaderSearch.cpp')
-rw-r--r--clang/lib/Lex/HeaderSearch.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Lex/HeaderSearch.cpp b/clang/lib/Lex/HeaderSearch.cpp
index 5770aaa..254c029 100644
--- a/clang/lib/Lex/HeaderSearch.cpp
+++ b/clang/lib/Lex/HeaderSearch.cpp
@@ -48,7 +48,7 @@ HeaderSearch::HeaderSearch(IntrusiveRefCntPtr<HeaderSearchOptions> HSOpts,
const LangOptions &LangOpts,
const TargetInfo *Target)
: HSOpts(HSOpts), FileMgr(SourceMgr.getFileManager()), FrameworkMap(64),
- ModMap(SourceMgr, *Diags.getClient(), LangOpts, Target, *this)
+ ModMap(SourceMgr, Diags, LangOpts, Target, *this)
{
AngledDirIdx = 0;
SystemDirIdx = 0;