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/Frontend/CompilerInstance.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/Frontend/CompilerInstance.cpp')
-rw-r--r-- | lib/Frontend/CompilerInstance.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Frontend/CompilerInstance.cpp b/lib/Frontend/CompilerInstance.cpp index f4d0a15f23..0e3b25168f 100644 --- a/lib/Frontend/CompilerInstance.cpp +++ b/lib/Frontend/CompilerInstance.cpp @@ -250,7 +250,8 @@ void CompilerInstance::createPreprocessor() { PTHMgr = PTHManager::Create(PPOpts.TokenCache, getDiagnostics()); // Create the Preprocessor. - HeaderSearch *HeaderInfo = new HeaderSearch(getFileManager()); + HeaderSearch *HeaderInfo = new HeaderSearch(getFileManager(), + getDiagnostics()); PP = new Preprocessor(getDiagnostics(), getLangOpts(), &getTarget(), getSourceManager(), *HeaderInfo, *this, PTHMgr, /*OwnsHeaderSearch=*/true); |