From 850a105f72797a8e194a2b139432f63d9037cbd3 Mon Sep 17 00:00:00 2001 From: Alp Toker Date: Fri, 2 May 2014 03:43:21 +0000 Subject: [PATCH] Remove unused IncrProcessing parameter from Preprocessor ctor Preprocessor::enableIncrementalProcessing() provides a consistent interface to enable the feature. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207824 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Lex/Preprocessor.h | 1 - lib/Frontend/CompilerInstance.cpp | 1 - lib/Lex/Preprocessor.cpp | 5 ++--- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/include/clang/Lex/Preprocessor.h b/include/clang/Lex/Preprocessor.h index 23445e87a9..883de783e1 100644 --- a/include/clang/Lex/Preprocessor.h +++ b/include/clang/Lex/Preprocessor.h @@ -461,7 +461,6 @@ public: IdentifierInfoLookup *IILookup = 0, bool OwnsHeaderSearch = false, bool DelayInitialization = false, - bool IncrProcessing = false, TranslationUnitKind TUKind = TU_Complete); ~Preprocessor(); diff --git a/lib/Frontend/CompilerInstance.cpp b/lib/Frontend/CompilerInstance.cpp index 1fa1f4a106..aa2e07e668 100644 --- a/lib/Frontend/CompilerInstance.cpp +++ b/lib/Frontend/CompilerInstance.cpp @@ -244,7 +244,6 @@ void CompilerInstance::createPreprocessor(TranslationUnitKind TUKind) { getSourceManager(), *HeaderInfo, *this, PTHMgr, /*OwnsHeaderSearch=*/true, /*DelayInitialization=*/false, - /*IncrProcessing=*/false, TUKind); // Note that this is different then passing PTHMgr to Preprocessor's ctor. diff --git a/lib/Lex/Preprocessor.cpp b/lib/Lex/Preprocessor.cpp index d85df38ea7..adbee6e3a9 100644 --- a/lib/Lex/Preprocessor.cpp +++ b/lib/Lex/Preprocessor.cpp @@ -59,12 +59,11 @@ Preprocessor::Preprocessor(IntrusiveRefCntPtr PPOpts, const TargetInfo *target, SourceManager &SM, HeaderSearch &Headers, ModuleLoader &TheModuleLoader, IdentifierInfoLookup *IILookup, bool OwnsHeaders, - bool DelayInitialization, bool IncrProcessing, - TranslationUnitKind TUKind) + bool DelayInitialization, TranslationUnitKind TUKind) : PPOpts(PPOpts), Diags(&diags), LangOpts(opts), Target(target), FileMgr(Headers.getFileMgr()), SourceMgr(SM), HeaderInfo(Headers), TheModuleLoader(TheModuleLoader), ExternalSource(0), - Identifiers(opts, IILookup), IncrementalProcessing(IncrProcessing), + Identifiers(opts, IILookup), IncrementalProcessing(false), TUKind(TUKind), CodeComplete(0), CodeCompletionFile(0), CodeCompletionOffset(0), LastTokenWasAt(false), ModuleImportExpectsIdentifier(false), -- 2.40.0