diff options
| author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2014-03-07 07:47:58 +0000 |
|---|---|---|
| committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2014-03-07 07:47:58 +0000 |
| commit | ddea7155402b971fff22173cfa9912117da68ce4 (patch) | |
| tree | a36c3fbd976d18da6f719959161827f368210bd3 /lib/Frontend/CompilerInstance.cpp | |
| parent | fec65ff9a65e73091d9f8117e6a072b79a6b8363 (diff) | |
| download | clang-ddea7155402b971fff22173cfa9912117da68ce4.tar.gz clang-ddea7155402b971fff22173cfa9912117da68ce4.tar.bz2 clang-ddea7155402b971fff22173cfa9912117da68ce4.tar.xz | |
[Preprocessor] Pass TranslationUnitKind to the preprocessor and if it is TU_Prefix
avoid warning for unused macros.
rdar://15034698
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@203213 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/CompilerInstance.cpp')
| -rw-r--r-- | lib/Frontend/CompilerInstance.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/Frontend/CompilerInstance.cpp b/lib/Frontend/CompilerInstance.cpp index f10311a4ea..be1a540268 100644 --- a/lib/Frontend/CompilerInstance.cpp +++ b/lib/Frontend/CompilerInstance.cpp @@ -223,7 +223,7 @@ void CompilerInstance::createSourceManager(FileManager &FileMgr) { // Preprocessor -void CompilerInstance::createPreprocessor() { +void CompilerInstance::createPreprocessor(TranslationUnitKind TUKind) { const PreprocessorOptions &PPOpts = getPreprocessorOpts(); // Create a PTH manager if we are using some form of a token cache. @@ -240,7 +240,10 @@ void CompilerInstance::createPreprocessor() { PP = new Preprocessor(&getPreprocessorOpts(), getDiagnostics(), getLangOpts(), &getTarget(), getSourceManager(), *HeaderInfo, *this, PTHMgr, - /*OwnsHeaderSearch=*/true); + /*OwnsHeaderSearch=*/true, + /*DelayInitialization=*/false, + /*IncrProcessing=*/false, + TUKind); // Note that this is different then passing PTHMgr to Preprocessor's ctor. // That argument is used as the IdentifierInfoLookup argument to |
