summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/HeaderSearch.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-11-11 00:35:06 +0000
committerDouglas Gregor <dgregor@apple.com>2011-11-11 00:35:06 +0000
commit197ac203af7810a066d15aafea18b85331826a48 (patch)
treeb39d244169b6f55433c370c9dc9bd3179f18abab /clang/lib/Lex/HeaderSearch.cpp
parentf311655e3f12cc05eecae31da47ca813819f4af1 (diff)
downloadbcm5719-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.cpp5
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;
OpenPOWER on IntegriCloud