diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-11-11 00:35:06 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-11-11 00:35:06 +0000 |
commit | 197ac203af7810a066d15aafea18b85331826a48 (patch) | |
tree | b39d244169b6f55433c370c9dc9bd3179f18abab /clang/lib/Lex/HeaderSearch.cpp | |
parent | f311655e3f12cc05eecae31da47ca813819f4af1 (diff) | |
download | bcm5719-llvm-197ac203af7810a066d15aafea18b85331826a48.tar.gz bcm5719-llvm-197ac203af7810a066d15aafea18b85331826a48.zip |
I predict that HeaderSearch will need the ability to generate
diagnostics in the future. Make it so.
llvm-svn: 144347
Diffstat (limited to 'clang/lib/Lex/HeaderSearch.cpp')
-rw-r--r-- | clang/lib/Lex/HeaderSearch.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/Lex/HeaderSearch.cpp b/clang/lib/Lex/HeaderSearch.cpp index 931145a8d65..837b913d475 100644 --- a/clang/lib/Lex/HeaderSearch.cpp +++ b/clang/lib/Lex/HeaderSearch.cpp @@ -36,8 +36,9 @@ HeaderFileInfo::getControllingMacro(ExternalIdentifierLookup *External) { ExternalHeaderFileInfoSource::~ExternalHeaderFileInfoSource() {} -HeaderSearch::HeaderSearch(FileManager &FM) - : FileMgr(FM), FrameworkMap(64) { +HeaderSearch::HeaderSearch(FileManager &FM, DiagnosticsEngine &Diags) + : FileMgr(FM), Diags(Diags), FrameworkMap(64) +{ AngledDirIdx = 0; SystemDirIdx = 0; NoCurDirSearch = false; |