Enable the global module index by default. Introduce the
-fno-modules-global-index -cc1 option to allow one to disable the index for performance testing purposes, but with a 10% win in -fsyntax-only time, there is no reason a user would do this. llvm-svn: 173707
This commit is contained in:
@@ -689,7 +689,7 @@ static InputKind ParseFrontendArgs(FrontendOptions &Opts, ArgList &Args,
|
||||
Opts.FixAndRecompile = Args.hasArg(OPT_fixit_recompile);
|
||||
Opts.FixToTemporaries = Args.hasArg(OPT_fixit_to_temp);
|
||||
Opts.ASTDumpFilter = Args.getLastArgValue(OPT_ast_dump_filter);
|
||||
Opts.UseGlobalModuleIndex = Args.hasArg(OPT_fmodules_global_index);
|
||||
Opts.UseGlobalModuleIndex = !Args.hasArg(OPT_fno_modules_global_index);
|
||||
Opts.GenerateGlobalModuleIndex = Opts.UseGlobalModuleIndex;
|
||||
|
||||
Opts.CodeCompleteOpts.IncludeMacros
|
||||
|
||||
Reference in New Issue
Block a user