Rename the -cc1 option "-generate-module-index" to

"-fmodules-global-index" and expand its behavior to include both the
use and generation of the global module index.

llvm-svn: 173404
This commit is contained in:
Douglas Gregor
2013-01-25 00:45:27 +00:00
parent 00a50f742a
commit c1bbec85a8
9 changed files with 61 additions and 24 deletions

View File

@@ -689,7 +689,8 @@ 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.GenerateModuleIndex = Args.hasArg(OPT_generate_module_index);
Opts.UseGlobalModuleIndex = Args.hasArg(OPT_fmodules_global_index);
Opts.GenerateGlobalModuleIndex = Opts.UseGlobalModuleIndex;
Opts.CodeCompleteOpts.IncludeMacros
= Args.hasArg(OPT_code_completion_macros);