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 | 8e23806863721495f9e1f84aed614f7afba774a3 (patch) | |
tree | b997bacaaef8875fe081eab117af2f80cbed4ee4 /lib/Lex/HeaderSearch.cpp | |
parent | dd93c596cd95e1b96031ff47efe0a5095ff3d7f1 (diff) |
I predict that HeaderSearch will need the ability to generate
diagnostics in the future. Make it so.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@144347 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/HeaderSearch.cpp')
-rw-r--r-- | lib/Lex/HeaderSearch.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Lex/HeaderSearch.cpp b/lib/Lex/HeaderSearch.cpp index 931145a8d6..837b913d47 100644 --- a/lib/Lex/HeaderSearch.cpp +++ b/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; |