summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2013-01-28 18:38:02 +0000
committerDouglas Gregor <dgregor@apple.com>2013-01-28 18:38:02 +0000
commit137f1b991e4bab3e16a95a5a6ef1eba1b9c720cb (patch)
tree59a560af09e98587258050f2861c95a916cefe5e /clang/lib/Frontend/CompilerInvocation.cpp
parent2e4ae4e1548aff9dace97240355c0cf73d2d3646 (diff)
downloadbcm5719-llvm-137f1b991e4bab3e16a95a5a6ef1eba1b9c720cb.tar.gz
bcm5719-llvm-137f1b991e4bab3e16a95a5a6ef1eba1b9c720cb.zip
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
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInvocation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp
index 9c965c05e5e..b200637cb57 100644
--- a/clang/lib/Frontend/CompilerInvocation.cpp
+++ b/clang/lib/Frontend/CompilerInvocation.cpp
@@ -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
OpenPOWER on IntegriCloud