]> granicus.if.org Git - clang/commitdiff
Remove unused IncrProcessing parameter from Preprocessor ctor
authorAlp Toker <alp@nuanti.com>
Fri, 2 May 2014 03:43:21 +0000 (03:43 +0000)
committerAlp Toker <alp@nuanti.com>
Fri, 2 May 2014 03:43:21 +0000 (03:43 +0000)
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
lib/Frontend/CompilerInstance.cpp
lib/Lex/Preprocessor.cpp

index 23445e87a99b06a1c5e58abed31ddab7be2f10a1..883de783e1996bfc8cd27a4d29b765fbc4d6d579 100644 (file)
@@ -461,7 +461,6 @@ public:
                IdentifierInfoLookup *IILookup = 0,
                bool OwnsHeaderSearch = false,
                bool DelayInitialization = false,
-               bool IncrProcessing = false,
                TranslationUnitKind TUKind = TU_Complete);
 
   ~Preprocessor();
index 1fa1f4a106780b5f2d3537208fc055cfaa4d52ff..aa2e07e668ba5e3b792b481eb804ea4c914574a8 100644 (file)
@@ -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.
index d85df38ea711bb01a6fe4e022fea3ed3f59cd43e..adbee6e3a943e110506e51baeb64562da258a3a5 100644 (file)
@@ -59,12 +59,11 @@ Preprocessor::Preprocessor(IntrusiveRefCntPtr<PreprocessorOptions> 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),